Skip to content

Commit 4d5bbba

Browse files
benhor01James Morse
authored andcommitted
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: 2a3c79c ("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>
1 parent 67c0a48 commit 4d5bbba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/resctrl/mpam_resctrl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
#include "mpam_internal.h"
2424

25-
DECLARE_WAIT_QUEUE_HEAD(resctrl_mon_ctx_waiters);
25+
static DECLARE_WAIT_QUEUE_HEAD(resctrl_mon_ctx_waiters);
2626

2727
/*
2828
* The classes we've picked to map to resctrl resources, wrapped

0 commit comments

Comments
 (0)