Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

arm_mpam: resctrl: Make resctrl_mon_ctx_waiters static

resctrl_mon_ctx_waiters is not used outside of this file, so make it
static. This fixes the sparse warning:

drivers/resctrl/mpam_resctrl.c:25:1: warning: symbol 'resctrl_mon_ctx_waiters' was not declared. Should it be static?

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202603281842.c2K96tJA-lkp@intel.com/
Fixes: 2a3c79c61539 ("arm_mpam: resctrl: Allow resctrl to allocate monitors")
Signed-off-by: Ben Horgan <ben.horgan@arm.com>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Signed-off-by: James Morse <james.morse@arm.com>

authored by

Ben Horgan and committed by
James Morse
4d5bbbaf 67c0a487

+1 -1
+1 -1
drivers/resctrl/mpam_resctrl.c
··· 22 22 23 23 #include "mpam_internal.h" 24 24 25 - DECLARE_WAIT_QUEUE_HEAD(resctrl_mon_ctx_waiters); 25 + static DECLARE_WAIT_QUEUE_HEAD(resctrl_mon_ctx_waiters); 26 26 27 27 /* 28 28 * The classes we've picked to map to resctrl resources, wrapped