[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1515669225-125691-1-git-send-email-weiyongjun1@huawei.com>
Date: Thu, 11 Jan 2018 11:13:45 +0000
From: Wei Yongjun <weiyongjun1@...wei.com>
To: Joe Perches <joe@...ches.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"Luis R. Rodriguez" <mcgrof@...nel.org>,
"Zhang Rui" <rui.zhang@...el.com>,
Felipe Balbi <felipe.balbi@...ux.intel.com>,
"Andy Shevchenko" <andy.shevchenko@...il.com>
CC: Wei Yongjun <weiyongjun1@...wei.com>,
<linux-kernel@...r.kernel.org>, <kernel-janitors@...r.kernel.org>
Subject: [PATCH -next] 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@...wei.com>
---
lib/test_firmware.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/test_firmware.c b/lib/test_firmware.c
index 964784d..1e907dd3b4 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)
Powered by blists - more mailing lists