[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1408534754-28326-1-git-send-email-hoangtran.gwr@gmail.com>
Date: Wed, 20 Aug 2014 19:39:14 +0800
From: Hoang Tran <hoangtran.gwr@...il.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"John W. Linville" <linville@...driver.com>,
Larry Finger <Larry.Finger@...inger.net>,
Sachin Kamat <sachin.kamat@...aro.org>
Cc: Hoang Tran <hoangtran.gwr@...il.com>, devel@...verdev.osuosl.org,
linux-kernel@...r.kernel.org
Subject: [[PATCH v2] staging: rtl8821ae: fix sparse warning for static declarations in rtl8821ae/stats.c
This patch fixes the following sparse warnings in rtl8821ae/stats.c
drivers/staging/rtl8821ae/stats.c:62:6: warning: symbol 'rtl_translate_todbm' was not declared. Should it be static?
drivers/staging/rtl8821ae/stats.c:101:6: warning: symbol 'rtl_process_ui_rssi' was not declared. Should it be static?
Signed-off-by: Hoang Tran <hoangtran.gwr@...il.com>
---
drivers/staging/rtl8821ae/stats.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/rtl8821ae/stats.c b/drivers/staging/rtl8821ae/stats.c
index 4d383d1..fdbde43 100644
--- a/drivers/staging/rtl8821ae/stats.c
+++ b/drivers/staging/rtl8821ae/stats.c
@@ -59,7 +59,7 @@ u8 rtl_evm_db_to_percentage(char value)
}
//EXPORT_SYMBOL(rtl_evm_db_to_percentage);
-long rtl_translate_todbm(struct ieee80211_hw *hw,
+static long rtl_translate_todbm(struct ieee80211_hw *hw,
u8 signal_strength_index)
{
long signal_power;
@@ -98,7 +98,8 @@ long rtl_signal_scale_mapping(struct ieee80211_hw *hw, long currsig)
}
//EXPORT_SYMBOL(rtl_signal_scale_mapping);
-void rtl_process_ui_rssi(struct ieee80211_hw *hw, struct rtl_stats *pstatus)
+static void rtl_process_ui_rssi(struct ieee80211_hw *hw,
+ struct rtl_stats *pstatus)
{
struct rtl_priv *rtlpriv = rtl_priv(hw);
struct rtl_phy *rtlphy = &(rtlpriv->phy);
--
2.0.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists