# \[PATCH\] wireless: make \_\_freq\_reg\_info static

- From: Johannes Berg \<johannes@sipsolutions.net\>
- Date: 2015-08-21 12:13:45 
- List: linux-wireless
- Page: https://ratatoskr.run/linux-wireless/2015/08/15722301
- Thread: https://ratatoskr.run/linux-wireless/2015/08/15722301/t.md

```text
From: Johannes Berg <redacted>

As pointed out by sparse, this symbol should be static, make it so.

Signed-off-by: Johannes Berg <redacted>
---
 net/wireless/reg.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/wireless/reg.c b/net/wireless/reg.c
index b144485946f2..70aef72c4ca2 100644
--- a/net/wireless/reg.c
+++ b/net/wireless/reg.c
@@ -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;
-- 
2.1.4

```
