[PATCH] lib: make struct pointer foo static

From: Colin King
Date: Sun Jun 24 2018 - 07:22:13 EST


From: Colin Ian King <colin.king@xxxxxxxxxxxxx>

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?

Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>
---
lib/test_debug_virtual.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

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)
{
--
2.17.0