Skip to content

Commit b15f5f1

Browse files
Colin Ian Kingtorvalds
authored andcommitted
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>
1 parent 9144d75 commit b15f5f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/test_debug_virtual.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ struct foo {
1515
unsigned int bar;
1616
};
1717

18-
struct foo *foo;
18+
static struct foo *foo;
1919

2020
static int __init test_debug_virtual_init(void)
2121
{

0 commit comments

Comments
 (0)