* [PATCH] lockdep: make variable check_consistency static
@ 2023-11-22 10:53 Ben Dooks
0 siblings, 0 replies; only message in thread
From: Ben Dooks @ 2023-11-22 10:53 UTC (permalink / raw)
To: linux-kernel; +Cc: peterz, mingo, will, longman, boqun.feng, Ben Dooks
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?
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
---
kernel/locking/lockdep.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c
index e85b5ad3e206..73aeee69ebd1 100644
--- a/kernel/locking/lockdep.c
+++ b/kernel/locking/lockdep.c
@@ -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)
--
2.37.2.352.g3c44437643
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-11-22 10:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-22 10:53 [PATCH] lockdep: make variable check_consistency static Ben Dooks
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®