diff mbox

[-next] wlcore: spi: fix non static symbol warning

Message ID 1469196488-21050-1-git-send-email-weiyj.lk@gmail.com (mailing list archive)
State Accepted
Commit 4ad0579a28c0a02613c1d4a53c03ae746f14b0ac
Delegated to: Kalle Valo
Headers show

Commit Message

Wei Yongjun July 22, 2016, 2:08 p.m. UTC
Fixes the following sparse warning:

drivers/net/wireless/ti/wlcore/spi.c:87:34: warning:
 symbol 'wilink_data' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
---
 drivers/net/wireless/ti/wlcore/spi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Kalle Valo Sept. 3, 2016, 9:55 a.m. UTC | #1
Wei Yongjun <weiyj.lk@gmail.com> wrote:
> Fixes the following sparse warning:
> 
> drivers/net/wireless/ti/wlcore/spi.c:87:34: warning:
>  symbol 'wilink_data' was not declared. Should it be static?
> 
> Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>

Thanks, 1 patch applied to wireless-drivers-next.git:

4ad0579a28c0 wlcore: spi: fix non static symbol warning
diff mbox

Patch

diff --git a/drivers/net/wireless/ti/wlcore/spi.c b/drivers/net/wireless/ti/wlcore/spi.c
index 6d24040..0ed526e 100644
--- a/drivers/net/wireless/ti/wlcore/spi.c
+++ b/drivers/net/wireless/ti/wlcore/spi.c
@@ -84,7 +84,7 @@  struct wilink_familiy_data {
 	char name[8];
 };
 
-const struct wilink_familiy_data *wilink_data;
+static const struct wilink_familiy_data *wilink_data;
 
 static const struct wilink_familiy_data wl18xx_data = {
 	.name = "wl18xx",