From: Himangi Saraogi Date: Sat, 8 Mar 2014 23:37:35 +0000 (+0530) Subject: staging:rtl8192u:ieee80211: Fix smatch warning of function definition with external... X-Git-Tag: v3.15-rc1~139^2~489 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=74a371a0c29f8bf8793b9b860c0f9256ed83cb4b;p=linux.git staging:rtl8192u:ieee80211: Fix smatch warning of function definition with external linkage This patch fixes the warnings: drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c:381:13: warning: function 'ieee80211_qurey_ShortPreambleMode' with external linkage has definition drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c:395:1: warning: function 'ieee80211_query_HTCapShortGI' with external linkage has definition Signed-off-by: Himangi Saraogi Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c index 157b2d7466e5..da1cf3fec4af 100644 --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c @@ -378,7 +378,7 @@ static void ieee80211_tx_query_agg_cap(struct ieee80211_device *ieee, return; } -extern void ieee80211_qurey_ShortPreambleMode(struct ieee80211_device *ieee, cb_desc *tcb_desc) +void ieee80211_qurey_ShortPreambleMode(struct ieee80211_device *ieee, cb_desc *tcb_desc) { tcb_desc->bUseShortPreamble = false; if (tcb_desc->data_rate == 2) @@ -391,7 +391,7 @@ extern void ieee80211_qurey_ShortPreambleMode(struct ieee80211_device *ieee, cb_ } return; } -extern void +void ieee80211_query_HTCapShortGI(struct ieee80211_device *ieee, cb_desc *tcb_desc) { PRT_HIGH_THROUGHPUT pHTInfo = ieee->pHTInfo;