staging: rtl8192u: Fix static decleration sparse warning.
authorCihangir Akturk <cakturk@gmail.com>
Tue, 24 Mar 2015 19:53:53 +0000 (21:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Mar 2015 12:13:13 +0000 (13:13 +0100)
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 <cakturk@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c

index 543324744b4ca4b80c8e83e6f0511468fd6e6b9e..c2388812d4fd71d15015accb08c728f450b5a3d8 100644 (file)
@@ -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;