mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2024-12-29 17:23:36 +00:00
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>
This commit is contained in:
parent
9144d75e22
commit
b15f5f1ae1
@ -15,7 +15,7 @@ struct foo {
|
||||
unsigned int bar;
|
||||
};
|
||||
|
||||
struct foo *foo;
|
||||
static struct foo *foo;
|
||||
|
||||
static int __init test_debug_virtual_init(void)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user