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:
5d54f94
)
test_firmware: make local symbol test_fw_config static
author
Wei Yongjun
<weiyongjun1@huawei.com>
Thu, 11 Jan 2018 11:13:45 +0000
(11:13 +0000)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 22 Jan 2018 15:55:38 +0000
(16:55 +0100)
Fixes the following sparse warnings:
lib/test_firmware.c:99:20: warning:
symbol 'test_fw_config' was not declared. Should it be static?
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
lib/test_firmware.c
patch
|
blob
|
history
diff --git
a/lib/test_firmware.c
b/lib/test_firmware.c
index 964784dc16024b3c3e4e6311e8c3d4494e97b1e8..1e907dd3b4fe4e50385a458994a4ef4be9d8b70e 100644
(file)
--- a/
lib/test_firmware.c
+++ b/
lib/test_firmware.c
@@
-96,7
+96,7
@@
struct test_config {
struct device *device);
};
-struct test_config *test_fw_config;
+st
atic st
ruct test_config *test_fw_config;
static ssize_t test_fw_misc_read(struct file *f, char __user *buf,
size_t size, loff_t *offset)