]> git.dujemihanovic.xyz Git - linux.git/commit
net: dsa: ocelot: build felix.c into a dedicated kernel module
authorVladimir Oltean <vladimir.oltean@nxp.com>
Wed, 25 Jan 2023 14:57:16 +0000 (16:57 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 27 Jan 2023 07:37:46 +0000 (23:37 -0800)
commitc8005511f38757ef071b34c0a98cf3d8a1c920a7
tree00dda341a8febffe464ec61830cd9b2c4729d568
parent82fe335b78f76772acb6053b57bce95a0ad789bb
net: dsa: ocelot: build felix.c into a dedicated kernel module

The build system currently complains:

scripts/Makefile.build:252: drivers/net/dsa/ocelot/Makefile:
felix.o is added to multiple modules: mscc_felix mscc_seville

Since felix.c holds the DSA glue layer, create a mscc_felix_dsa_lib.ko.
This is similar to how mscc_ocelot_switch_lib.ko holds a library for
configuring the hardware.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Acked-by: Colin Foster <colin.foster@in-advantage.com>
Link: https://lore.kernel.org/r/20230125145716.271355-1-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/ocelot/Kconfig
drivers/net/dsa/ocelot/Makefile
drivers/net/dsa/ocelot/felix.c