瀏覽代碼

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 <cakturk@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cihangir Akturk 10 年之前
父節點
當前提交
d9e048cdd2
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c

+ 2 - 2
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;