net: ethernet: rocker: Add dependency to CONFIG_BRIDGE in Kconfig
authorAndreas Ruprecht <mail@rupran.de>
Fri, 5 Dec 2014 08:28:03 +0000 (09:28 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Dec 2014 20:26:43 +0000 (15:26 -0500)
In a configuration with CONFIG_BRIDGE set to 'm' and CONFIG_ROCKER
set to 'y', undefined references occur at link time:

> drivers/built-in.o: In function `rocker_port_fdb_learn_work':
> /home/jim/linux/drivers/net/ethernet/rocker/rocker.c:3014: undefined
> reference to `br_fdb_external_learn_del'
> /home/jim/linux/drivers/net/ethernet/rocker/rocker.c:3016: undefined
> reference to `br_fdb_external_learn_add'

This patch fixes these by declaring CONFIG_ROCKER as being dependent
on CONFIG_BRIDGE.

Reported-by: Jim Davis <jim.epost@gmail.com>
Signed-off-by: Andreas Ruprecht <rupran@einserver.de>
Acked-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/rocker/Kconfig

index 11a850eab628061d29353f9a81e0c7639b9e1321..b9952ef040e4478d9c07bba8046affe0f9fab7b0 100644 (file)
@@ -17,7 +17,7 @@ if NET_VENDOR_ROCKER
 
 config ROCKER
        tristate "Rocker switch driver (EXPERIMENTAL)"
-       depends on PCI && NET_SWITCHDEV
+       depends on PCI && NET_SWITCHDEV && BRIDGE
        ---help---
          This driver supports Rocker switch device.