]> Git Repo - linux.git/commitdiff
net: sparx5: uses, depends on BRIDGE or !BRIDGE
authorRandy Dunlap <[email protected]>
Wed, 30 Mar 2022 01:20:25 +0000 (18:20 -0700)
committerJakub Kicinski <[email protected]>
Thu, 31 Mar 2022 02:16:27 +0000 (19:16 -0700)
Fix build errors when BRIDGE=m and SPARX5_SWITCH=y:

riscv64-linux-ld: drivers/net/ethernet/microchip/sparx5/sparx5_switchdev.o: in function `.L305':
sparx5_switchdev.c:(.text+0xdb0): undefined reference to `br_vlan_enabled'
riscv64-linux-ld: drivers/net/ethernet/microchip/sparx5/sparx5_switchdev.o: in function `.L283':
sparx5_switchdev.c:(.text+0xee0): undefined reference to `br_vlan_enabled'

Fixes: 3cfa11bac9bb ("net: sparx5: add the basic sparx5 driver")
Signed-off-by: Randy Dunlap <[email protected]>
Reported-by: kernel test robot <[email protected]>
Cc: Horatiu Vultur <[email protected]>
Cc: Lars Povlsen <[email protected]>
Cc: Steen Hegelund <[email protected]>
Cc: [email protected]
Cc: Paolo Abeni <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
drivers/net/ethernet/microchip/sparx5/Kconfig

index 85b24edb65d51ee39460a66592046f6b74105e89..cc5e48e1bb4c3e8eec58492b361cb7237401700a 100644 (file)
@@ -5,6 +5,7 @@ config SPARX5_SWITCH
        depends on OF
        depends on ARCH_SPARX5 || COMPILE_TEST
        depends on PTP_1588_CLOCK_OPTIONAL
+       depends on BRIDGE || BRIDGE=n
        select PHYLINK
        select PHY_SPARX5_SERDES
        select RESET_CONTROLLER
This page took 0.060632 seconds and 4 git commands to generate.