]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
octeontx2-pf: Fix linking objects into multiple modules
authorGeetha sowjanya <gakula@marvell.com>
Tue, 18 Jun 2024 06:11:22 +0000 (11:41 +0530)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Fri, 2 Aug 2024 14:27:17 +0000 (16:27 +0200)
commit4c9e114318fb2f3106b9dea89f4f369db2dd734f
tree4d2307ffa8162ac7083a681a22c0166f14e36710
parent19f66382e869b0c4b1c1553d826a6db414a72a7e
octeontx2-pf: Fix linking objects into multiple modules

BugLink: https://bugs.launchpad.net/bugs/2075154
[ Upstream commit 1062d03827b78614259b3b4b992deb27ee6aa84d ]

This patch fixes the below build warning messages that are
caused due to linking same files to multiple modules by
exporting the required symbols.

"scripts/Makefile.build:244: drivers/net/ethernet/marvell/octeontx2/nic/Makefile:
otx2_devlink.o is added to multiple modules: rvu_nicpf rvu_nicvf

scripts/Makefile.build:244: drivers/net/ethernet/marvell/octeontx2/nic/Makefile:
otx2_dcbnl.o is added to multiple modules: rvu_nicpf rvu_nicvf"

Fixes: 8e67558177f8 ("octeontx2-pf: PFC config support with DCBx").
Signed-off-by: Geetha sowjanya <gakula@marvell.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Manuel Diewald <manuel.diewald@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/net/ethernet/marvell/octeontx2/nic/Makefile
drivers/net/ethernet/marvell/octeontx2/nic/otx2_dcbnl.c
drivers/net/ethernet/marvell/octeontx2/nic/otx2_devlink.c