[gustavoars:testing/wfamnae-next20260105 17/18] kernel/bpf/core.c:2628:22: warning: comparison of distinct pointer types ('struct bpf_prog_array *' and 'struct bpf_prog_array_hdr *')
From: kernel test robot
Date: Mon Jan 05 2026 - 11:46:03 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git testing/wfamnae-next20260105
head: 0864e0ff8ab1707473f669bf2a8dc94e97629018
commit: 40b37ce99bc78d07509af78fd140eba26cf6f512 [17/18] treewide_some: fix multiple -Wfamnae warnings that must be audited separately
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20260105/202601051711.0PmYQM0T-lkp@xxxxxxxxx/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260105/202601051711.0PmYQM0T-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/202601051711.0PmYQM0T-lkp@xxxxxxxxx/
All warnings (new ones prefixed by >>):
>> kernel/bpf/core.c:2628:22: warning: comparison of distinct pointer types ('struct bpf_prog_array *' and 'struct bpf_prog_array_hdr *') [-Wcompare-distinct-pointer-types]
2628 | if (!progs || progs == &bpf_empty_prog_array.hdr)
| ~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
vim +2628 kernel/bpf/core.c
8c7dcb84e3b744 Delyan Kratunov 2022-06-14 2625
8c7dcb84e3b744 Delyan Kratunov 2022-06-14 2626 void bpf_prog_array_free_sleepable(struct bpf_prog_array *progs)
8c7dcb84e3b744 Delyan Kratunov 2022-06-14 2627 {
8c7dcb84e3b744 Delyan Kratunov 2022-06-14 @2628 if (!progs || progs == &bpf_empty_prog_array.hdr)
8c7dcb84e3b744 Delyan Kratunov 2022-06-14 2629 return;
8c7dcb84e3b744 Delyan Kratunov 2022-06-14 2630 call_rcu_tasks_trace(&progs->rcu, __bpf_prog_array_free_sleepable_cb);
8c7dcb84e3b744 Delyan Kratunov 2022-06-14 2631 }
8c7dcb84e3b744 Delyan Kratunov 2022-06-14 2632
:::::: The code at line 2628 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