libertas: fix non static symbol warning
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 12 Jul 2016 11:32:19 +0000 (11:32 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 18 Jul 2016 19:39:11 +0000 (22:39 +0300)
Fixes the following sparse warning:

drivers/net/wireless/marvell/libertas/cfg.c:2047:5: warning:
 symbol 'lbs_set_power_mgmt' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/libertas/cfg.c

index ea48024..7ff2efa 100644 (file)
@@ -2044,8 +2044,8 @@ static int lbs_leave_ibss(struct wiphy *wiphy, struct net_device *dev)
 
 
 
-int lbs_set_power_mgmt(struct wiphy *wiphy, struct net_device *dev,
-                      bool enabled, int timeout)
+static int lbs_set_power_mgmt(struct wiphy *wiphy, struct net_device *dev,
+                             bool enabled, int timeout)
 {
        struct lbs_private *priv = wiphy_priv(wiphy);