Messages in this thread Patch in this message | | | Date | Thu, 18 Nov 2021 08:25:01 +0800 | From | kernel test robot <> | Subject | [RFC PATCH morse] x86/resctrl: domain_list_lock can be static |
| |
arch/x86/kernel/cpu/resctrl/core.c:34:1: warning: symbol 'domain_list_lock' was not declared. Should it be static?
Fixes: 63dc771f7240 ("x86/resctrl: Split arch and fs resctrl locks") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: kernel test robot <lkp@intel.com> --- core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kernel/cpu/resctrl/core.c b/arch/x86/kernel/cpu/resctrl/core.c index ae5d9e2d20b3b2..439078c4a676b3 100644 --- a/arch/x86/kernel/cpu/resctrl/core.c +++ b/arch/x86/kernel/cpu/resctrl/core.c @@ -31,7 +31,7 @@ * The rdt_resource's domain list is updated when this happens. The domain * list is protected by cpuhp as a rwlock, writers also take this mutex. */ -DEFINE_MUTEX(domain_list_lock); +static DEFINE_MUTEX(domain_list_lock); /* * The cached resctrl_pqr_state is strictly per CPU and can never be
| |