]> www.infradead.org Git - users/willy/pagecache.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)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Jun 2024 12:08:40 +0000 (13:08 +0100)
commit1062d03827b78614259b3b4b992deb27ee6aa84d
treede1def008cd2915120683e888a14affe16513102
parentb95a4afe2defd6f46891985f9436a568cd35a31c
octeontx2-pf: Fix linking objects into multiple modules

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>
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