wl12xx: fix a couple of sparse warnings about undeclared functions
authorLuciano Coelho <coelho@ti.com>
Mon, 21 Mar 2011 17:26:41 +0000 (19:26 +0200)
committerLuciano Coelho <coelho@ti.com>
Tue, 19 Apr 2011 13:49:11 +0000 (16:49 +0300)
Fix the following sparse warnings:

drivers/net/wireless/wl12xx/main.c:1129:5: warning: symbol '__wl1271_plt_stop' was not declared. Should it be static?
drivers/net/wireless/wl12xx/main.c:2988:5: warning: symbol 'wl1271_op_ampdu_action' was not declared. Should it be static?

Both functions should be static.

Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/main.c

index 916ebd1d414c3a95ddf58b3ea133c7420def2207..85cb4daac9a0ec877e00a00b6044e974e1a45a46 100644 (file)
@@ -1126,7 +1126,7 @@ out:
        return ret;
 }
 
-int __wl1271_plt_stop(struct wl1271 *wl)
+static int __wl1271_plt_stop(struct wl1271 *wl)
 {
        int ret = 0;
 
@@ -2985,10 +2985,11 @@ out:
        return ret;
 }
 
-int wl1271_op_ampdu_action(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
-                          enum ieee80211_ampdu_mlme_action action,
-                          struct ieee80211_sta *sta, u16 tid, u16 *ssn,
-                          u8 buf_size)
+static int wl1271_op_ampdu_action(struct ieee80211_hw *hw,
+                                 struct ieee80211_vif *vif,
+                                 enum ieee80211_ampdu_mlme_action action,
+                                 struct ieee80211_sta *sta, u16 tid, u16 *ssn,
+                                 u8 buf_size)
 {
        struct wl1271 *wl = hw->priv;
        int ret;