linux/drivers/net/ethernet/freescale/dpaa2
Arnd Bergmann ede3136e56 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>
2026-04-06 19:03:49 -07:00
..
dpaa2-eth-dcb.c
dpaa2-eth-debugfs.c
dpaa2-eth-debugfs.h
dpaa2-eth-devlink.c Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
dpaa2-eth-trace.h
dpaa2-eth.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
dpaa2-eth.h
dpaa2-ethtool.c net: dpaa2-mac: export standard statistics 2026-03-26 12:47:28 +01:00
dpaa2-mac.c dpaa2: avoid linking objects into multiple modules 2026-04-06 19:03:49 -07:00
dpaa2-mac.h net: dpaa2-mac: export standard statistics 2026-03-26 12:47:28 +01:00
dpaa2-ptp.c
dpaa2-ptp.h
dpaa2-switch-ethtool.c net: dpaa2-mac: export standard statistics 2026-03-26 12:47:28 +01:00
dpaa2-switch-flower.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
dpaa2-switch.c dpaa2-switch: Fix interrupt storm after receiving bad if_id in IRQ handler 2026-02-28 09:01:41 -08:00
dpaa2-switch.h
dpaa2-xsk.c net: xsk: dpaa2: avoid repeatedly updating the global consumer 2025-06-24 17:50:04 -07:00
dpkg.h
dpmac-cmd.h net: dpaa2-mac: extend APIs related to statistics 2026-03-26 12:47:28 +01:00
dpmac.c net: dpaa2-mac: extend APIs related to statistics 2026-03-26 12:47:28 +01:00
dpmac.h net: dpaa2-mac: extend APIs related to statistics 2026-03-26 12:47:28 +01:00
dpni-cmd.h
dpni.c
dpni.h
dprtc-cmd.h
dprtc.c
dprtc.h
dpsw-cmd.h
dpsw.c
dpsw.h
Kconfig dpaa2: add independent dependencies for FSL_DPAA2_SWITCH 2026-03-14 13:33:03 -07:00
Makefile dpaa2: avoid linking objects into multiple modules 2026-04-06 19:03:49 -07:00