mt76: mt7663s: fix link error with CONFIG_PM=n
PATCH 1/1 mt76: mt7663s: fix link error with CONFIG_PM=n
From: Arnd Bergmann <[email protected]>
The generic register access functions are compiled conditionally, causing a link failure in some randconfig builds:
ERROR: modpost: "mt76_connac_mcu_reg_wr" [drivers/net/wireless/mediatek/mt76/mt7615/mt7663s.ko] undefined!
ERROR: modpost: "mt76_connac_mcu_reg_rr" [drivers/net/wireless/mediatek/mt76/mt7615/mt7663s.ko] undefined!
Move them out of the #ifdef block.
--- drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c +1 -1
@@ -2477,6 +2477,7 @@ void mt76_connac_mcu_set_suspend_iter(void *priv, u8 *mac, mt76_connac_mcu_set_wow_ctrl(phy, vif, suspend, wowlan); }EXPORT_SYMBOL_GPL (mt76_connac_mcu_set_suspend_iter); +#endif /* CONFIG_PM */ u32 mt76_connac_mcu_reg_rr (struct mt76_dev *dev,u32 offset) {
@@ -2505,7 +2506,6 @@ void mt76_connac_mcu_reg_wr(struct mt76_dev *dev, u32 offset, u32 val)mt76_mcu_send_msg (dev,MCU_CMD_REG_WRITE , &req,sizeof (req), false); }EXPORT_SYMBOL_GPL (mt76_connac_mcu_reg_wr); -#endif /* CONFIG_PM */ MODULE_AUTHOR ("Lorenzo Bianconi <[email protected]>" );MODULE_LICENSE ("Dual BSD/GPL" );
Signature · 1 line
2.29.2
Quoted 5 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
The generic register access functions are compiled conditionally, causing a link failure in some randconfig builds:
Quoted 7 lines
ERROR: modpost: "
mt76_connac_mcu_reg_wr" [drivers/net/wireless/mediatek/mt76/mt7615/mt7663s.ko] undefined!
ERROR: modpost: "mt76_connac_mcu_reg_rr" [drivers/net/wireless/mediatek/mt76/mt7615/mt7663s.ko] undefined!Move them out of the #ifdef block.
Fixes 02fbf8199f6e ("mt76: mt7663s: rely on mcu reg access utility")Signed-off-by Arnd Bergmann <[email protected]>
Felix already submitted an identical patch:
https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/
Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches