diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2018-01-11 06:13:45 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-01-22 10:55:38 -0500 |
commit | 76f8ab1bd1cb0be3233ab07790c3108d986aeabf (patch) | |
tree | 459ab1a7c6b24f6c737c964357c97a6c1e09674d | |
parent | 5d54f948aaac4a6ab6b908af379103559a5a002c (diff) |
test_firmware: make local symbol test_fw_config static
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>
-rw-r--r-- | lib/test_firmware.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/test_firmware.c b/lib/test_firmware.c index 964784dc1602..1e907dd3b4fe 100644 --- a/lib/test_firmware.c +++ b/lib/test_firmware.c | |||
@@ -96,7 +96,7 @@ struct test_config { | |||
96 | struct device *device); | 96 | struct device *device); |
97 | }; | 97 | }; |
98 | 98 | ||
99 | struct test_config *test_fw_config; | 99 | static struct test_config *test_fw_config; |
100 | 100 | ||
101 | static ssize_t test_fw_misc_read(struct file *f, char __user *buf, | 101 | static ssize_t test_fw_misc_read(struct file *f, char __user *buf, |
102 | size_t size, loff_t *offset) | 102 | size_t size, loff_t *offset) |