wireless: make __freq_reg_info static
authorJohannes Berg <johannes.berg@intel.com>
Fri, 21 Aug 2015 12:13:06 +0000 (14:13 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 22 Sep 2015 13:21:20 +0000 (15:21 +0200)
As pointed out by sparse, this symbol should be static, make it so.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/reg.c

index b144485946f2e5ce2ec6411cd52462fa278b185e..70aef72c4ca2111c8b864a09eea0f0aa6e7c4055 100644 (file)
@@ -1040,8 +1040,8 @@ freq_reg_info_regd(struct wiphy *wiphy, u32 center_freq,
        return ERR_PTR(-EINVAL);
 }
 
-const struct ieee80211_reg_rule *__freq_reg_info(struct wiphy *wiphy,
-                                                u32 center_freq, u32 min_bw)
+static const struct ieee80211_reg_rule *
+__freq_reg_info(struct wiphy *wiphy, u32 center_freq, u32 min_bw)
 {
        const struct ieee80211_regdomain *regd = reg_get_regdomain(wiphy);
        const struct ieee80211_reg_rule *reg_rule = NULL;