From 6831574c68d10cc7af02b4257e44d9d964ddea8e Mon Sep 17 00:00:00 2001 From: Ana Rey Date: Wed, 19 Mar 2014 12:47:26 +0100 Subject: [PATCH] staging: rtl8192u: make in ieee80211/ieee80211_wx.c a local variable static Make some local variable eee80211_modes static. Fix sparse warnings: drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c:42:19: warning: symbol 'ieee80211_modes' was not declared. Should it be static? Signed-off-by: Ana Rey Signed-off-by: Greg Kroah-Hartman --- drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c index e1fe54acb4b8..bdf67ec5df21 100644 --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c @@ -39,7 +39,7 @@ struct modes_unit { char *mode_string; int mode_size; }; -struct modes_unit ieee80211_modes[] = { +static struct modes_unit ieee80211_modes[] = { {"a",1}, {"b",1}, {"g",1}, -- 2.20.1