[gustavoars:testing/wfamnae-next20240912 15/15] kernel/bpf/core.c:2505:29: warning: comparison of distinct pointer types lacks a cast
From: kernel test robot
Date: Fri Sep 13 2024 - 23:49:47 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git testing/wfamnae-next20240912
head: f2ca068393cf1157c12ab08556b05824eec16511
commit: f2ca068393cf1157c12ab08556b05824eec16511 [15/15] treewide_some: fix multiple -Wfamnae warnings that must be audited separately
config: x86_64-defconfig (https://download.01.org/0day-ci/archive/20240914/202409141152.VgCj23dh-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.3.0-12) 11.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240914/202409141152.VgCj23dh-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/202409141152.VgCj23dh-lkp@xxxxxxxxx/
All warnings (new ones prefixed by >>):
kernel/bpf/core.c: In function 'bpf_prog_array_free_sleepable':
>> kernel/bpf/core.c:2505:29: warning: comparison of distinct pointer types lacks a cast
2505 | if (!progs || progs == &bpf_empty_prog_array.hdr)
| ^~
vim +2505 kernel/bpf/core.c
8c7dcb84e3b744 Delyan Kratunov 2022-06-14 2502
8c7dcb84e3b744 Delyan Kratunov 2022-06-14 2503 void bpf_prog_array_free_sleepable(struct bpf_prog_array *progs)
8c7dcb84e3b744 Delyan Kratunov 2022-06-14 2504 {
8c7dcb84e3b744 Delyan Kratunov 2022-06-14 @2505 if (!progs || progs == &bpf_empty_prog_array.hdr)
8c7dcb84e3b744 Delyan Kratunov 2022-06-14 2506 return;
8c7dcb84e3b744 Delyan Kratunov 2022-06-14 2507 call_rcu_tasks_trace(&progs->rcu, __bpf_prog_array_free_sleepable_cb);
8c7dcb84e3b744 Delyan Kratunov 2022-06-14 2508 }
8c7dcb84e3b744 Delyan Kratunov 2022-06-14 2509
:::::: The code at line 2505 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