Skip to contentSkip to conversation

scftorture: Make torture_type static

PATCH New GUO Zihua 1 participant 1 message Aug 4, 2023

lore
Share & tools
lore

GUO Zihua

author
#0 lore raw

PATCH 1/1 scftorture: Make torture_type static

torture_type is not referred elsewhere, so make it static.

This resolves sparse warning:
warning: symbol 'torture_type' was not declared. Should it be static?

---
 kernel/scftorture.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/scftorture.c +1 -1
index 5d113aa59e77..b92da02d0293 100644
@@ -67,7 +67,7 @@ torture_param(int, weight_many_wait, -1, "Testing weight for multi-CPU operation
 torture_param(int, weight_all, -1, "Testing weight for all-CPU no-wait operations.");
 torture_param(int, weight_all_wait, -1, "Testing weight for all-CPU operations.");
 
-char *torture_type = "";
+static char *torture_type = "";
 
 #ifdef MODULE
 # define SCFTORT_SHUTDOWN 0
Signature · 1 line
2.17.1