Skip to content

Commit 1a4846f

Browse files
committed
mt76: clean up more unused EXPORT_SYMBOLs
Make functions static where possible Signed-off-by: Felix Fietkau <[email protected]>
1 parent 801ccc8 commit 1a4846f

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

drivers/net/wireless/mediatek/mt76/mt76x02_mac.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ void mt76x02_mac_wcid_set_drop(struct mt76x02_dev *dev, u8 idx, bool drop)
128128
if ((val & bit) != (bit * drop))
129129
mt76_wr(dev, MT_WCID_DROP(idx), (val & ~bit) | (bit * drop));
130130
}
131-
EXPORT_SYMBOL_GPL(mt76x02_mac_wcid_set_drop);
132131

133132
void mt76x02_txq_init(struct mt76x02_dev *dev, struct ieee80211_txq *txq)
134133
{
@@ -220,7 +219,6 @@ void mt76x02_mac_set_short_preamble(struct mt76x02_dev *dev, bool enable)
220219
else
221220
mt76_clear(dev, MT_AUTO_RSP_CFG, MT_AUTO_RSP_PREAMB_SHORT);
222221
}
223-
EXPORT_SYMBOL_GPL(mt76x02_mac_set_short_preamble);
224222

225223
bool mt76x02_mac_load_tx_status(struct mt76x02_dev *dev,
226224
struct mt76x02_tx_status *stat)
@@ -491,7 +489,7 @@ void mt76x02_send_tx_status(struct mt76x02_dev *dev,
491489
rcu_read_unlock();
492490
}
493491

494-
int
492+
static int
495493
mt76x02_mac_process_rate(struct mt76_rx_status *status, u16 rate)
496494
{
497495
u8 idx = FIELD_GET(MT_RXWI_RATE_INDEX, rate);
@@ -557,7 +555,6 @@ mt76x02_mac_process_rate(struct mt76_rx_status *status, u16 rate)
557555

558556
return 0;
559557
}
560-
EXPORT_SYMBOL_GPL(mt76x02_mac_process_rate);
561558

562559
void mt76x02_mac_setaddr(struct mt76x02_dev *dev, u8 *addr)
563560
{
@@ -823,7 +820,6 @@ void mt76x02_mac_work(struct work_struct *work)
823820
ieee80211_queue_delayed_work(mt76_hw(dev), &dev->mac_work,
824821
MT_CALIBRATE_INTERVAL);
825822
}
826-
EXPORT_SYMBOL_GPL(mt76x02_mac_work);
827823

828824
void mt76x02_mac_set_bssid(struct mt76x02_dev *dev, u8 idx, const u8 *addr)
829825
{
@@ -832,7 +828,6 @@ void mt76x02_mac_set_bssid(struct mt76x02_dev *dev, u8 idx, const u8 *addr)
832828
mt76_rmw_field(dev, MT_MAC_APC_BSSID_H(idx), MT_MAC_APC_BSSID_H_ADDR,
833829
get_unaligned_le16(addr + 4));
834830
}
835-
EXPORT_SYMBOL_GPL(mt76x02_mac_set_bssid);
836831

837832
static int
838833
mt76x02_write_beacon(struct mt76x02_dev *dev, int offset, struct sk_buff *skb)
@@ -914,7 +909,6 @@ int mt76x02_mac_set_beacon(struct mt76x02_dev *dev, u8 vif_idx,
914909
bcn_idx - 1);
915910
return 0;
916911
}
917-
EXPORT_SYMBOL_GPL(mt76x02_mac_set_beacon);
918912

919913
void mt76x02_mac_set_beacon_enable(struct mt76x02_dev *dev,
920914
u8 vif_idx, bool val)
@@ -946,4 +940,3 @@ void mt76x02_mac_set_beacon_enable(struct mt76x02_dev *dev,
946940
else
947941
mt76x02_irq_disable(dev, MT_INT_PRE_TBTT | MT_INT_TBTT);
948942
}
949-
EXPORT_SYMBOL_GPL(mt76x02_mac_set_beacon_enable);

drivers/net/wireless/mediatek/mt76/mt76x02_mac.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,6 @@ void mt76x02_send_tx_status(struct mt76x02_dev *dev,
216216
struct mt76x02_tx_status *stat, u8 *update);
217217
int mt76x02_mac_process_rx(struct mt76x02_dev *dev, struct sk_buff *skb,
218218
void *rxi);
219-
int mt76x02_mac_process_rate(struct mt76_rx_status *status, u16 rate);
220219
void mt76x02_mac_set_tx_protection(struct mt76x02_dev *dev, u32 val);
221220
void mt76x02_mac_setaddr(struct mt76x02_dev *dev, u8 *addr);
222221
void mt76x02_mac_write_txwi(struct mt76x02_dev *dev, struct mt76x02_txwi *txwi,

drivers/net/wireless/mediatek/mt76/mt76x02_util.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,6 @@ const u16 mt76x02_beacon_offsets[16] = {
606606
0xc000,
607607
0xc000,
608608
};
609-
EXPORT_SYMBOL_GPL(mt76x02_beacon_offsets);
610609

611610
static void mt76x02_set_beacon_offsets(struct mt76x02_dev *dev)
612611
{

0 commit comments

Comments
 (0)