summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-06-28 16:30:19 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2018-06-29 07:38:02 +1000
commitc8200c92db07d112efeaa1212f3def5c8c8a22cb (patch)
tree26508c1caac83d1f5bafd353b467504915a6a7e8
parente4a681fac48096f65b11a5ecb1f8b56064e2641d (diff)
downloadlinux-c8200c92db07d112efeaa1212f3def5c8c8a22cb.tar.gz
linux-c8200c92db07d112efeaa1212f3def5c8c8a22cb.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: Stephen Rothwell <sfr@canb.auug.org.au>
-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)
{