mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
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.
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202605240046.8MvKuOMg-lkp@intel.com/
Closes: https://lore.kernel.org/oe-kbuild-all/202605240706.EuGmnrz5-lkp@intel.com/
Fixes: 187fbae024 ("net: dsa: netc: introduce NXP NETC switch driver for i.MX94")
Signed-off-by: Wei Fang <wei.fang@nxp.com>
Link: https://patch.msgid.link/20260524070310.2429819-1-wei.fang@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
17 lines
560 B
Plaintext
17 lines
560 B
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
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
|
|
select NXP_NETC_LIB
|
|
help
|
|
This driver supports the NXP NETC Ethernet switch, which is embedded
|
|
as a PCIe function of the NXP NETC IP. But note that this driver is
|
|
only available for NETC v4.3 and later versions.
|
|
|
|
If compiled as module (M), the module name is nxp-netc-switch.
|