]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
test_firmware: make local symbol test_fw_config static
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 11 Jan 2018 11:13:45 +0000 (11:13 +0000)
committerGreg 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

index 964784dc16024b3c3e4e6311e8c3d4494e97b1e8..1e907dd3b4fe4e50385a458994a4ef4be9d8b70e 100644 (file)
@@ -96,7 +96,7 @@ struct test_config {
                            struct device *device);
 };
 
-struct test_config *test_fw_config;
+static struct test_config *test_fw_config;
 
 static ssize_t test_fw_misc_read(struct file *f, char __user *buf,
                                 size_t size, loff_t *offset)