mwl8k: mwl8k_update_survey can be static
authorYogesh Ashok Powar <yogeshp@marvell.com>
Thu, 6 Mar 2014 15:12:58 +0000 (20:42 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 6 Mar 2014 19:29:58 +0000 (14:29 -0500)
It fixes following sparse check warning
>#make C=1 CF=-D__CHECK_ENDIAN__ drivers/net/wireless/mwl8k.o
>drivers/net/wireless/mwl8k.c:3089:6: warning: symbol 'mwl8k_update_survey' was not declared. Should it be static?

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Nishant Sarmukadam <nishants@marvell.com>
Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwl8k.c

index 706a445dba37892d08eeeee5cd85136b8b76cdf3..3c0a0a86ba12038056dee4bbc37d12cb50ae9868 100644 (file)
@@ -3088,8 +3088,8 @@ exit:
        return idx;
 }
 
-void mwl8k_update_survey(struct mwl8k_priv *priv,
-                        struct ieee80211_channel *channel)
+static void mwl8k_update_survey(struct mwl8k_priv *priv,
+                               struct ieee80211_channel *channel)
 {
        u32 cca_cnt, rx_rdy;
        s8 nf = 0, idx;