]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dpaa2: avoid linking objects into multiple modules
authorArnd Bergmann <arnd@arndb.de>
Thu, 2 Apr 2026 18:46:55 +0000 (20:46 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 7 Apr 2026 02:03:49 +0000 (19:03 -0700)
commitede3136e56557498ec3f2e6da58cb0920d8074e1
treed5427a8f74671b7b52734b3cab5a61814e372e8b
parentdf75bd552a8790e83d4aeb5f112050cf3dc687bf
dpaa2: avoid linking objects into multiple modules

Each object file contains information about which module it gets linked
into, so linking the same file into multiple modules now causes a warning:

scripts/Makefile.build:254: drivers/net/ethernet/freescale/dpaa2/Makefile: dpaa2-mac.o is added to multiple modules: fsl-dpaa2-eth fsl-dpaa2-switch
scripts/Makefile.build:254: drivers/net/ethernet/freescale/dpaa2/Makefile: dpmac.o is added to multiple modules: fsl-dpaa2-eth fsl-dpaa2-switch

Change the way that dpaa2 is built by moving the two common files into a
separate module with exported symbols instead.

Tested-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Reviewed-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://patch.msgid.link/20260402184726.3746487-3-arnd@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/dpaa2/Makefile
drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.c