Skip to content

Commit f7d55d2

Browse files
arndbKalle Valo
authored and
Kalle Valo
committed
mt76: mt7921: fix build regression
After mt7921s got added, there are two possible build problems: a) mt7921s does not get built at all if mt7921e is not also enabled b) there is a link error when mt7921e is a loadable module, but mt7921s configured as built-in: ERROR: modpost: "mt7921_mac_sta_add" [drivers/net/wireless/mediatek/mt76/mt7921/mt7921e.ko] undefined! ERROR: modpost: "mt7921_mac_sta_assoc" [drivers/net/wireless/mediatek/mt76/mt7921/mt7921e.ko] undefined! ERROR: modpost: "mt7921_mac_sta_remove" [drivers/net/wireless/mediatek/mt76/mt7921/mt7921e.ko] undefined! ERROR: modpost: "mt7921_mac_write_txwi" [drivers/net/wireless/mediatek/mt76/mt7921/mt7921e.ko] undefined! ERROR: modpost: "mt7921_mcu_drv_pmctrl" [drivers/net/wireless/mediatek/mt76/mt7921/mt7921e.ko] undefined! ERROR: modpost: "mt7921_mcu_fill_message" [drivers/net/wireless/mediatek/mt76/mt7921/mt7921e.ko] undefined! ERROR: modpost: "mt7921_mcu_parse_response" [drivers/net/wireless/mediatek/mt76/mt7921/mt7921e.ko] undefined! ERROR: modpost: "mt7921_ops" [drivers/net/wireless/mediatek/mt76/mt7921/mt7921e.ko] undefined! ERROR: modpost: "mt7921_queue_rx_skb" [drivers/net/wireless/mediatek/mt76/mt7921/mt7921e.ko] undefined! ERROR: modpost: "mt7921_update_channel" [drivers/net/wireless/mediatek/mt76/mt7921/mt7921e.ko] undefined! Fix both by making sure that Kbuild enters the subdirectory when either one is enabled. Fixes: 48fab5b ("mt76: mt7921: introduce mt7921s support") Signed-off-by: Arnd Bergmann <[email protected]> Acked-by: Felix Fietkau <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent c68115f commit f7d55d2

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/wireless/mediatek/mt76

1 file changed

+1
-1
lines changed

drivers/net/wireless/mediatek/mt76/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ obj-$(CONFIG_MT76x2_COMMON) += mt76x2/
3434
obj-$(CONFIG_MT7603E) += mt7603/
3535
obj-$(CONFIG_MT7615_COMMON) += mt7615/
3636
obj-$(CONFIG_MT7915E) += mt7915/
37-
obj-$(CONFIG_MT7921E) += mt7921/
37+
obj-$(CONFIG_MT7921_COMMON) += mt7921/

0 commit comments

Comments
 (0)