* [gustavoars:testing/wfamnae-next20250804 1/17] kernel/bpf/core.c:2612:22: warning: comparison of distinct pointer types ('struct bpf_prog_array *' and 'struct bpf_prog_array_hdr *')
@ 2025-08-04 12:24 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-08-04 12:24 UTC (permalink / raw)
To: Gustavo A. R. Silva; +Cc: llvm, oe-kbuild-all, Gustavo A. R. Silva, LKML
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git testing/wfamnae-next20250804
head: 77e4387959f9cf67aa8d2fa3cae21bdb5670245f
commit: 7c7e69659cdb6b689bfeff088a677871696d5482 [1/17] treewide_some: fix multiple -Wfamnae warnings that must be audited separately
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20250804/202508041430.BdK5xJ23-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
rustc: rustc 1.88.0 (6b00bc388 2025-06-23)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250804/202508041430.BdK5xJ23-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202508041430.BdK5xJ23-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> kernel/bpf/core.c:2612:22: warning: comparison of distinct pointer types ('struct bpf_prog_array *' and 'struct bpf_prog_array_hdr *') [-Wcompare-distinct-pointer-types]
2612 | if (!progs || progs == &bpf_empty_prog_array.hdr)
| ~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
vim +2612 kernel/bpf/core.c
8c7dcb84e3b744 Delyan Kratunov 2022-06-14 2609
8c7dcb84e3b744 Delyan Kratunov 2022-06-14 2610 void bpf_prog_array_free_sleepable(struct bpf_prog_array *progs)
8c7dcb84e3b744 Delyan Kratunov 2022-06-14 2611 {
8c7dcb84e3b744 Delyan Kratunov 2022-06-14 @2612 if (!progs || progs == &bpf_empty_prog_array.hdr)
8c7dcb84e3b744 Delyan Kratunov 2022-06-14 2613 return;
8c7dcb84e3b744 Delyan Kratunov 2022-06-14 2614 call_rcu_tasks_trace(&progs->rcu, __bpf_prog_array_free_sleepable_cb);
8c7dcb84e3b744 Delyan Kratunov 2022-06-14 2615 }
8c7dcb84e3b744 Delyan Kratunov 2022-06-14 2616
:::::: The code at line 2612 was first introduced by commit
:::::: 8c7dcb84e3b744b2b70baa7a44a9b1881c33a9c9 bpf: implement sleepable uprobes by chaining gps
:::::: TO: Delyan Kratunov <delyank@fb.com>
:::::: CC: Alexei Starovoitov <ast@kernel.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-08-04 12:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-04 12:24 [gustavoars:testing/wfamnae-next20250804 1/17] kernel/bpf/core.c:2612:22: warning: comparison of distinct pointer types ('struct bpf_prog_array *' and 'struct bpf_prog_array_hdr *') kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®