From d9e048cdd260a1e7f9f2e25cb2bad46521812d99 Mon Sep 17 00:00:00 2001 From: Cihangir Akturk Date: Tue, 24 Mar 2015 21:53:53 +0200 Subject: [PATCH] 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 --- drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.30.2