lib/test_debug_virtual.c: make struct pointer foo static
authorColin Ian King <[email protected]>
Wed, 22 Aug 2018 04:57:07 +0000 (21:57 -0700)
committerLinus Torvalds <[email protected]>
Wed, 22 Aug 2018 17:52:48 +0000 (10:52 -0700)
The pointer foo is local to the source and does not need to be
in global scope, so make it static.

Cleans up sparse warning:
symbol 'foo' was not declared. Should it be static?

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Colin Ian King <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
lib/test_debug_virtual.c

index b9cdeecc19dc303f0167433457f41f5325684f6a..d5a06addeb27180a60577dbcd04ff2582cb391db 100644 (file)
@@ -15,7 +15,7 @@ struct foo {
        unsigned int bar;
 };
 
-struct foo *foo;
+static struct foo *foo;
 
 static int __init test_debug_virtual_init(void)
 {