]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
net: systemport: add NET_DSA dependency
authorArnd Bergmann <arnd@arndb.de>
Mon, 16 Oct 2017 11:32:36 +0000 (13:32 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Oct 2017 20:21:05 +0000 (21:21 +0100)
The notifier cause a link error when NET_DSA is a loadable
module:

drivers/net/ethernet/broadcom/bcmsysport.o: In function `bcm_sysport_remove':
bcmsysport.c:(.text+0x1582): undefined reference to `unregister_dsa_notifier'
drivers/net/ethernet/broadcom/bcmsysport.o: In function `bcm_sysport_probe':
bcmsysport.c:(.text+0x278d): undefined reference to `register_dsa_notifier'

This adds a dependency that forces the systemport driver to be
a loadable module as well when that happens, but otherwise
allows it to be built normally when DSA is either built-in or
completely disabled.

Fixes: d156576362c0 ("net: systemport: Establish lower/upper queue mapping")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/Kconfig

index 67134ece110772e9e74480759f88c1d42fecff7d..af75156919edfead9bbe1e223b92d45d4fdd444e 100644 (file)
@@ -184,6 +184,7 @@ config BGMAC_PLATFORM
 config SYSTEMPORT
        tristate "Broadcom SYSTEMPORT internal MAC support"
        depends on OF
+       depends on NET_DSA || !NET_DSA
        select MII
        select PHYLIB
        select FIXED_PHY