Skip to contentSkip to conversation

net: dsa: netc: fix unmet Kconfig dependencies for NET_DSA_NETC_SWITCH

PATCH Applied Wei Fang 2 participants 2 messages May 24 – May 27

Subsystems (5)
lore
Share & tools
lore

Wei Fang

author maintainer
#0 lore raw

PATCH 1/1 net: dsa: netc: fix unmet Kconfig dependencies for NET_DSA_NETC_SWITCH

NET_DSA_NETC_SWITCH selects NXP_NTMP, NXP_NETC_LIB and FSL_ENETC_MDIO, but these symbols depend on NET_VENDOR_FREESCALE which may not be enabled. This results in Kconfig warnings and linker errors like:

undefined reference to ntmp_bpt_update_entry' undefined reference to ntmp_fdbt_search_port_entry' undefined reference to ntmp_free_cbdr' undefined reference to enetc_hw_alloc'
...

Therefore, add "depends on NET_VENDOR_FREESCALE" to NET_DSA_NETC_SWITCH, ensuring that the selected symbols NXP_NTMP, NXP_NETC_LIB and FSL_ENETC_MDIO, which all depend on NET_VENDOR_FREESCALE, can only be selected when that dependency is already satisfied.

---
 drivers/net/dsa/netc/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/net/dsa/netc/Kconfig +1 -0
index d2f78d74ac23..793f7691a24f 100644
@@ -3,6 +3,7 @@ config NET_DSA_NETC_SWITCH
 	tristate "NXP NETC Ethernet switch support"
 	depends on ARM64 || COMPILE_TEST
 	depends on NET_DSA && PCI
+	depends on NET_VENDOR_FREESCALE
 	select NET_DSA_TAG_NETC
 	select FSL_ENETC_MDIO
 	select NXP_NTMP
Signature · 1 line
2.34.1
#1 lore raw
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 11 lines · On Sun, 24 May 2026 15:03:10 +0800 you wrote:

NET_DSA_NETC_SWITCH selects NXP_NTMP, NXP_NETC_LIB and FSL_ENETC_MDIO, but these symbols depend on NET_VENDOR_FREESCALE which may not be enabled. This results in Kconfig warnings and linker errors like:

undefined reference to ntmp_bpt_update_entry' undefined reference to ntmp_fdbt_search_port_entry' undefined reference to ntmp_free_cbdr' undefined reference to enetc_hw_alloc'
...

[...]

Here is the summary with links:
- [net-next] net: dsa: netc: fix unmet Kconfig dependencies for NET_DSA_NETC_SWITCH

    https://git.kernel.org/netdev/net-next/c/10006ad04b74

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html