net: mscc: ocelot: select NET_DEVLINK
authorArnd Bergmann <arnd@arndb.de>
Thu, 25 Feb 2021 14:38:31 +0000 (15:38 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 26 Feb 2021 23:29:53 +0000 (15:29 -0800)
commit907310ceb27ee4259bedb6c1257f5d05ee44f3ce
treeeea00b945ca691d4775d600e98b6d94223a0144f
parent7ae845d767adb058cfd123371daa252d8f55a006
net: mscc: ocelot: select NET_DEVLINK

Without this option, the driver fails to link:

ld.lld: error: undefined symbol: devlink_sb_register
>>> referenced by ocelot_devlink.c
>>>               net/ethernet/mscc/ocelot_devlink.o:(ocelot_devlink_sb_register) in archive drivers/built-in.a
>>> referenced by ocelot_devlink.c
>>>               net/ethernet/mscc/ocelot_devlink.o:(ocelot_devlink_sb_register) in archive drivers/built-in.a

Fixes: f59fd9cab730 ("net: mscc: ocelot: configure watermarks using devlink-sb")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20210225143910.3964364-1-arnd@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mscc/Kconfig