[lkml]   [2021]   [Nov]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
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 <>
Signed-off-by: kernel test robot <>
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.
+static DEFINE_MUTEX(domain_list_lock);

* The cached resctrl_pqr_state is strictly per CPU and can never be
 \ /
  Last update: 2021-11-18 01:26    [W:0.047 / U:2.192 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site