mt76: make mt76_sar_capa static
authorLorenzo Bianconi <lorenzo@kernel.org>
Tue, 21 Dec 2021 08:25:57 +0000 (09:25 +0100)
committerFelix Fietkau <nbd@nbd.name>
Thu, 3 Feb 2022 12:57:57 +0000 (13:57 +0100)
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 <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mac80211.c

index 8bb1c7ab5b5025caef04c439336c2cd946eea85b..148e126b9215ab3af17dd0d538074deec6f8c7d8 100644 (file)
@@ -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],