Skip to content

Commit f9512d6

Browse files
rddunlapkuba-moo
authored andcommitted
net: sparx5: uses, depends on BRIDGE or !BRIDGE
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: 3cfa11b ("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]>
1 parent 1f686f2 commit f9512d6

File tree

1 file changed

+1
-0
lines changed
  • drivers/net/ethernet/microchip/sparx5

1 file changed

+1
-0
lines changed

drivers/net/ethernet/microchip/sparx5/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ config SPARX5_SWITCH
55
depends on OF
66
depends on ARCH_SPARX5 || COMPILE_TEST
77
depends on PTP_1588_CLOCK_OPTIONAL
8+
depends on BRIDGE || BRIDGE=n
89
select PHYLINK
910
select PHY_SPARX5_SERDES
1011
select RESET_CONTROLLER

0 commit comments

Comments
 (0)