Skip to contentSkip to conversation

locking/static_keys: make old_true_key and old_false_key static

PATCH New Jason Yan 1 participant 1 message Apr 17, 2020 Library code

lore
Share & tools
lore

Jason Yan

author
#0 lore raw

PATCH 1/1 locking/static_keys: make old_true_key and old_false_key static

Fix the following sparse warning:

lib/test_static_keys.c:15:19: warning: symbol 'old_true_key' was not declared. Should it be static? lib/test_static_keys.c:16:19: warning: symbol 'old_false_key' was not declared. Should it be static?

---
 lib/test_static_keys.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
lib/test_static_keys.c +2 -2
index 42daa74be029..41658c5bf770 100644
@@ -12,8 +12,8 @@
 #include <linux/jump_label.h>
 
 /* old keys */
-struct static_key old_true_key	= STATIC_KEY_INIT_TRUE;
-struct static_key old_false_key	= STATIC_KEY_INIT_FALSE;
+static struct static_key old_true_key	= STATIC_KEY_INIT_TRUE;
+static struct static_key old_false_key	= STATIC_KEY_INIT_FALSE;
 
 /* new api */
 DEFINE_STATIC_KEY_TRUE(true_key);
Signature · 1 line
2.21.1