drivers/resctrl/mpam_resctrl.c:25:1: sparse: sparse: symbol 'resctrl_mon_ctx_waiters' was not declared. Should it be static?
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git mpam/glue/v7.0-rc3 head: 4ce0a2ccc0358f3f746fa50815a599f861fd5d68 commit: 4aab135bda1661a795e4fe96418bf840833e1119 [33/40] arm64: mpam: Select ARCH_HAS_CPU_RESCTRL config: arm64-randconfig-r113-20260328 (https://download.01.org/0day-ci/archive/20260328/[email protected]/config) compiler: aarch64-linux-gcc (GCC) 8.5.0 sparse: v0.6.5-rc1 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260328/[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 >>)
>> drivers/resctrl/mpam_resctrl.c:25:1: sparse: sparse: symbol 'resctrl_mon_ctx_waiters' was not declared. Should it be static?
vim +/resctrl_mon_ctx_waiters +25 drivers/resctrl/mpam_resctrl.c
09e61daf8e96b9 James Morse 2026-03-13 242a3c79c6153977 James Morse 2026-03-13 @25 DECLARE_WAIT_QUEUE_HEAD(resctrl_mon_ctx_waiters); 2a3c79c6153977 James Morse 2026-03-13 26
:::::: The code at line 25 was first introduced by commit
:::::: 2a3c79c61539779a09928893518c8286d7774b54 arm_mpam: resctrl: Allow resctrl to allocate monitors
:::::: TO: James Morse <[email protected]>
:::::: CC: James Morse <[email protected]>
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki