Skip to contentSkip to conversation

mt76x2: make mt76x2_mac_reset routine static

PATCH In review Lorenzo Bianconi 3 participants 3 messages Apr 3, 2018 – Apr 24, 2018 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#1 lore raw

PATCH 1/1 mt76x2: make mt76x2_mac_reset routine static

In reply to a message not in the archive

Add static qualifier to mt76x2_mac_reset routine and remove the prototype from mt76x2_mac.h since it is used just in mt76x2_init.c

---
 drivers/net/wireless/mediatek/mt76/mt76x2_init.c | 2 +-
 drivers/net/wireless/mediatek/mt76/mt76x2_mac.h  | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)
drivers/net/wireless/mediatek/mt76/mt76x2_init.c +1 -1
index 934c331d995e..359b105235b3 100644
@@ -228,7 +228,7 @@ mt76x2_init_beacon_offsets(struct mt76x2_dev *dev)
 		mt76_wr(dev, MT_BCN_OFFSET(i), regs[i]);
 }
 
-int mt76x2_mac_reset(struct mt76x2_dev *dev, bool hard)
+static int mt76x2_mac_reset(struct mt76x2_dev *dev, bool hard)
 {
 	static const u8 null_addr[ETH_ALEN] = {};
 	const u8 *macaddr = dev->mt76.macaddr;
drivers/net/wireless/mediatek/mt76/mt76x2_mac.h +0 -1
index 8a8a25e32d5f..c048cd06df6b 100644
@@ -157,7 +157,6 @@ mt76x2_skb_tx_info(struct sk_buff *skb)
 	return (void *) info->status.status_driver_data;
 }
 
-int mt76x2_mac_reset(struct mt76x2_dev *dev, bool hard);
 int mt76x2_mac_start(struct mt76x2_dev *dev);
 void mt76x2_mac_stop(struct mt76x2_dev *dev, bool force);
 void mt76x2_mac_resume(struct mt76x2_dev *dev);
Signature · 1 line
2.14.3
#3 lore raw
In reply to Lorenzo Bianconi
Quoted 5 lines · Lorenzo Bianconi

Add static qualifier to mt76x2_mac_reset routine and remove the prototype from mt76x2_mac.h since it is used just in mt76x2_init.c

Patch applied to wireless-drivers-next.git, thanks.

00dfae9a0ab7 mt76x2: make mt76x2_mac_reset routine static

Signature · 3 lines
https://patchwork.kernel.org/patch/10321389/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches