projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9144d75
)
lib/test_debug_virtual.c: make struct pointer foo static
author
Colin Ian King
<
[email protected]
>
Wed, 22 Aug 2018 04:57:07 +0000
(21:57 -0700)
committer
Linus Torvalds
<
[email protected]
>
Wed, 22 Aug 2018 17:52:48 +0000
(10:52 -0700)
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/
[email protected]
Signed-off-by: Colin Ian King <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
lib/test_debug_virtual.c
patch
|
blob
|
history
diff --git
a/lib/test_debug_virtual.c
b/lib/test_debug_virtual.c
index b9cdeecc19dc303f0167433457f41f5325684f6a..d5a06addeb27180a60577dbcd04ff2582cb391db 100644
(file)
--- a/
lib/test_debug_virtual.c
+++ b/
lib/test_debug_virtual.c
@@
-15,7
+15,7
@@
struct foo {
unsigned int bar;
};
-struct foo *foo;
+st
atic st
ruct foo *foo;
static int __init test_debug_virtual_init(void)
{