drivers/crypto: fix build with -fno-common
authorAkhil Goyal <akhil.goyal@nxp.com>
Wed, 13 May 2020 11:50:26 +0000 (17:20 +0530)
committerAkhil Goyal <akhil.goyal@nxp.com>
Fri, 15 May 2020 17:43:17 +0000 (19:43 +0200)
commiteef9e0412a84cddf8944379ed4995314b4369370
tree317b725280228182695688248242a8ed0afdb621
parentc140299940587c701a9d5b52fb543e1b28ce2857
drivers/crypto: fix build with -fno-common

gcc 10 defaults to -fno-common and as a result when linking
with crypto drivers:

drivers/librte_pmd_dpaa_sec.a(crypto_dpaa_sec_dpaa_sec.c.o):
(.bss+0x4): multiple definition of `rta_sec_era';
drivers/librte_pmd_caam_jr.a(crypto_caam_jr_caam_jr.c.o):
(.bss+0x0): first defined here

drivers/librte_pmd_dpaa2_sec.a(crypto_dpaa2_sec_dpaa2_sec_dpseci.c.o):
(.data+0x0): multiple definition of `rta_sec_era';
drivers/librte_pmd_caam_jr.a(crypto_caam_jr_caam_jr.c.o):
(.bss+0x0): first defined here

This patch fixes the blunt workaround in the following commit.

Fixes: 50b03f3b8eaf ("drivers/crypto: disable gcc 10 no-common errors")

Bugzilla ID: 469
Cc: stable@dpdk.org
Signed-off-by: Akhil Goyal <akhil.goyal@nxp.com>
Tested-by: Kevin Traynor <ktraynor@redhat.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Acked-by: Ray Kinsella <mdr@ashroe.eu>
13 files changed:
drivers/common/dpaax/Makefile
drivers/common/dpaax/caamflib.c [new file with mode: 0644]
drivers/common/dpaax/meson.build
drivers/common/dpaax/rte_common_dpaax_version.map
drivers/crypto/caam_jr/Makefile
drivers/crypto/caam_jr/caam_jr.c
drivers/crypto/caam_jr/meson.build
drivers/crypto/dpaa2_sec/Makefile
drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c
drivers/crypto/dpaa2_sec/meson.build
drivers/crypto/dpaa_sec/Makefile
drivers/crypto/dpaa_sec/dpaa_sec.c
drivers/crypto/dpaa_sec/meson.build