From: Wei Yongjun Date: Thu, 11 Jan 2018 11:13:45 +0000 (+0000) Subject: test_firmware: make local symbol test_fw_config static X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=76f8ab1bd1cb0be3233ab07790c3108d986aeabf;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Greg Kroah-Hartman --- 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 { 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)