From 6c48748398307dd4cb2e6ca451ae1027ca5b6a67 Mon Sep 17 00:00:00 2001 From: Lorenzo Bianconi Date: Tue, 21 Dec 2021 09:25:57 +0100 Subject: [PATCH] mt76: make mt76_sar_capa static Fix the following sparse warning: drivers/net/wireless/mediatek/mt76/mac80211.c:183:32: warning: symbol 'mt76_sar_capa' was not declared. Should it be static? Signed-off-by: Lorenzo Bianconi Signed-off-by: Felix Fietkau --- mac80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mac80211.c b/mac80211.c index 8bb1c7ab..148e126b 100644 --- a/mac80211.c +++ b/mac80211.c @@ -180,7 +180,7 @@ static const struct cfg80211_sar_freq_ranges mt76_sar_freq_ranges[] = { { .start_freq = 5725, .end_freq = 5950, }, }; -const struct cfg80211_sar_capa mt76_sar_capa = { +static const struct cfg80211_sar_capa mt76_sar_capa = { .type = NL80211_SAR_TYPE_POWER, .num_freq_ranges = ARRAY_SIZE(mt76_sar_freq_ranges), .freq_ranges = &mt76_sar_freq_ranges[0],