[jimc:scratchpad-v10 12/14] kernel/bpf/syscall.c:2066:1: sparse: sparse: symbol 'batch_ENABLE_KEY' 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/jimc/linux.git scratchpad-v10
head:   45e5e0071e4ad7afee159e8cbe6cbe50c8db61d0
commit: fb64a69b9c601ac8e03f211ad8af9ab8df902cd6 [12/14] bpf/syscall: Route generic_map_update_batch key/value allocations to scratchpad
config: hexagon-randconfig-r133-20260825 (https://download.01.org/0day-ci/archive/20260825/[email protected]/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260825/[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/syscall.c:2066:1: sparse: sparse: symbol 'batch_ENABLE_KEY' was not declared. Should it be static?

vim +/batch_ENABLE_KEY +2066 kernel/bpf/syscall.c

  2065	
> 2066	DEFINE_SCRATCHPAD_PARAM(batch,
  2067				"Toggle BPF generic map update batch scratchpad");
  2068	

--
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.