From: Cihangir Akturk Date: Tue, 24 Mar 2015 19:53:53 +0000 (+0200) Subject: staging: rtl8192u: Fix static decleration sparse warning. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d9e048cdd260a1e7f9f2e25cb2bad46521812d99;p=linux-beck.git staging: rtl8192u: Fix static decleration sparse warning. The function 'ieee80211_check_auth_response' is used only in this file, so make it static. This patch fixes the following sparse warning. 'ieee80211_check_auth_response' was not declared. Should it be static? Signed-off-by: Cihangir Akturk Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c index 543324744b4c..c2388812d4fd 100644 --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c @@ -1921,8 +1921,8 @@ static void ieee80211_process_action(struct ieee80211_device *ieee, } -void ieee80211_check_auth_response(struct ieee80211_device *ieee, - struct sk_buff *skb) +static void ieee80211_check_auth_response(struct ieee80211_device *ieee, + struct sk_buff *skb) { /* default support N mode, disable halfNmode */ bool bSupportNmode = true, bHalfSupportNmode = false;