[kkdwivedi:fermata 19/21] kernel/bpf/helpers.c:2412:18: sparse: sparse: symbol 'bpf_coro_suspend' was not declared. Should it be static?

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
tree:   https://github.com/kkdwivedi/linux fermata
head:   0ebfd4123c6b1719f428de91a4e4eeca34f557f6
commit: d615082a1c50f83ded136b8c3131f41db54ba025 [19/21] bpf: Add no-op bpf_coro_suspend() kfunc
config: csky-randconfig-r113-20260807 (https://download.01.org/0day-ci/archive/20260808/[email protected]/config)
compiler: csky-linux-gcc (GCC) 16.1.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260808/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

sparse warnings: (new ones prefixed by >>)
   kernel/bpf/helpers.c:1228:21: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned long long ( *[usertype] callback_fn )( ... ) @@     got void [noderef] __rcu * @@
   kernel/bpf/helpers.c:1228:21: sparse:     expected unsigned long long ( *[usertype] callback_fn )( ... )
   kernel/bpf/helpers.c:1228:21: sparse:     got void [noderef] __rcu *
   kernel/bpf/helpers.c:2407:18: sparse: sparse: symbol 'bpf_coro_frame_free' was not declared. Should it be static?
>> kernel/bpf/helpers.c:2412:18: sparse: sparse: symbol 'bpf_coro_suspend' was not declared. Should it be static?
   kernel/bpf/helpers.c:2869:18: sparse: sparse: symbol 'bpf_task_release_dtor' was not declared. Should it be static?
   kernel/bpf/helpers.c:2899:18: sparse: sparse: symbol 'bpf_cgroup_release_dtor' was not declared. Should it be static?

vim +/bpf_coro_suspend +2412 kernel/bpf/helpers.c

  2411	
> 2412	__bpf_kfunc void bpf_coro_suspend(void *p__ign)
  2413	{
  2414	}
  2415	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.