summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-08-22 07:57:07 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2018-08-22 20:52:48 +0300
commitb15f5f1ae18a70f2db0ec4b4e5fa525420a67270 (patch)
tree846264b42644693b1c5caa8b13e7dc59fb4170bc /lib
parent9144d75e22cad3c89e6b2ccab551db9ee28d250a (diff)
downloadlinux-b15f5f1ae18a70f2db0ec4b4e5fa525420a67270.tar.xz
lib/test_debug_virtual.c: make struct pointer foo static
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/20180624112206.5722-1-colin.king@canonical.com Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/test_debug_virtual.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/test_debug_virtual.c b/lib/test_debug_virtual.c
index b9cdeecc19dc..d5a06addeb27 100644
--- a/lib/test_debug_virtual.c
+++ b/lib/test_debug_virtual.c
@@ -15,7 +15,7 @@ struct foo {
unsigned int bar;
};
-struct foo *foo;
+static struct foo *foo;
static int __init test_debug_virtual_init(void)
{