[gustavoars:testing/wfamnae-next20251210 10/20] kernel/bpf/core.c:2608:29: warning: comparison of distinct pointer types lacks a cast
From: kernel test robot
Date: Wed Dec 10 2025 - 23:14:40 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git testing/wfamnae-next20251210
head: ea71f4781aeb04a51e64f521bd95b80be09c14ae
commit: 69cad6a5b5543737a73e8a9dcd366cbf2fbef9ff [10/20] treewide_some: fix multiple -Wfamnae warnings that must be audited separately
config: i386-buildonly-randconfig-002-20251211 (https://download.01.org/0day-ci/archive/20251211/202512111202.bHVmpyyk-lkp@xxxxxxxxx/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251211/202512111202.bHVmpyyk-lkp@xxxxxxxxx/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512111202.bHVmpyyk-lkp@xxxxxxxxx/
All warnings (new ones prefixed by >>):
kernel/bpf/core.c: In function 'bpf_prog_array_free_sleepable':
>> kernel/bpf/core.c:2608:29: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types]
2608 | if (!progs || progs == &bpf_empty_prog_array.hdr)
| ^~
vim +2608 kernel/bpf/core.c
8c7dcb84e3b744 Delyan Kratunov 2022-06-14 2605
8c7dcb84e3b744 Delyan Kratunov 2022-06-14 2606 void bpf_prog_array_free_sleepable(struct bpf_prog_array *progs)
8c7dcb84e3b744 Delyan Kratunov 2022-06-14 2607 {
8c7dcb84e3b744 Delyan Kratunov 2022-06-14 @2608 if (!progs || progs == &bpf_empty_prog_array.hdr)
8c7dcb84e3b744 Delyan Kratunov 2022-06-14 2609 return;
8c7dcb84e3b744 Delyan Kratunov 2022-06-14 2610 call_rcu_tasks_trace(&progs->rcu, __bpf_prog_array_free_sleepable_cb);
8c7dcb84e3b744 Delyan Kratunov 2022-06-14 2611 }
8c7dcb84e3b744 Delyan Kratunov 2022-06-14 2612
:::::: The code at line 2608 was first introduced by commit
:::::: 8c7dcb84e3b744b2b70baa7a44a9b1881c33a9c9 bpf: implement sleepable uprobes by chaining gps
:::::: TO: Delyan Kratunov <delyank@xxxxxx>
:::::: CC: Alexei Starovoitov <ast@xxxxxxxxxx>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki