Skip to contentSkip to conversation

sched/psi: set varaiable psi_cgroups_enabled storage-class-specifier to static

PATCH In review Tom Rix 3 participants 3 messages Apr 5, 2023

Subsystems (2)
lore
Share & tools
lore

Tom Rix

author
#0 lore raw

PATCH 1/1 sched/psi: set varaiable psi_cgroups_enabled storage-class-specifier to static

smatch reports
kernel/sched/psi.c:143:1: warning: symbol
'psi_cgroups_enabled' was not declared. Should it be static?

This variable is only used in one file so should be static.

---
 kernel/sched/psi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/psi.c +1 -1
index 02e011cabe91..c8a556eb9f8a 100644
@@ -140,7 +140,7 @@
 static int psi_bug __read_mostly;
 
 DEFINE_STATIC_KEY_FALSE(psi_disabled);
-DEFINE_STATIC_KEY_TRUE(psi_cgroups_enabled);
+static DEFINE_STATIC_KEY_TRUE(psi_cgroups_enabled);
 
 #ifdef CONFIG_PSI_DEFAULT_DISABLED
 static bool psi_enable;
Signature · 1 line
2.27.0