Skip to contentSkip to conversation

lockdep: make variable check_consistency static

PATCH New Ben Dooks 1 participant 1 message Nov 22, 2023 Locking primitives

lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

PATCH 1/1 lockdep: make variable check_consistency static

The variable check_consistency is not used outside of this file so make it static to fix the following sparse warning:

kernel/locking/lockdep.c:1148:5: warning: symbol 'check_consistency' was not declared. Should it be static?

---
 kernel/locking/lockdep.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/locking/lockdep.c +1 -1
index e85b5ad3e206..73aeee69ebd1 100644
@@ -1145,7 +1145,7 @@ static bool __check_data_structures(void)
 	return true;
 }
 
-int check_consistency = 0;
+static int check_consistency = 0;
 module_param(check_consistency, int, 0644);
 
 static void check_data_structures(void)
Signature · 1 line
2.37.2.352.g3c44437643