]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: sparx5: add missing lan969x Kconfig dependency
authorArnd Bergmann <arnd@arndb.de>
Wed, 13 Nov 2024 11:55:08 +0000 (12:55 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 15 Nov 2024 03:25:51 +0000 (19:25 -0800)
commit4c54e9497d9abbaca814a963f805884f02dc89ec
treee10c4498cac7955d7e0771284efde7e104c0b6f9
parentf66af9616148e10e04eb172c7616ad79912b446e
net: sparx5: add missing lan969x Kconfig dependency

The sparx5 switchdev driver can be built either with or without support
for the Lan969x switch. However, it cannot be built-in when the lan969x
driver is a loadable module because of a link-time dependency:

arm-linux-gnueabi-ld: drivers/net/ethernet/microchip/sparx5/sparx5_main.o:(.rodata+0xd44): undefined reference to `lan969x_desc'

Add a Kconfig dependency to reflect this in Kconfig, allowing all
the valid configurations but forcing sparx5 to be a loadable module
as well if lan969x is.

Fixes: 98a01119608d ("net: sparx5: add compatible string for lan969x")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Daniel Machon <daniel.machon@microchip.com>
Link: https://patch.msgid.link/20241113115513.4132548-1-arnd@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/microchip/lan969x/Kconfig
drivers/net/ethernet/microchip/lan969x/Makefile