From: Kevin Traynor Date: Wed, 6 May 2020 09:45:18 +0000 (+0100) Subject: crypto/kasumi: fix extern declaration X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=6a6b5d5616c976eb306cbdbcf9241aba08d2516e;p=dpdk.git crypto/kasumi: fix extern declaration gcc 10 defaults to fno-common and it reports: crypto_kasumi_rte_kasumi_pmd_ops.c.o:(.data.rel+0x0): multiple definition of `rte_kasumi_pmd_ops'; crypto_kasumi_rte_kasumi_pmd.c.o:(.bss+0x8): first defined here Fix by making rte_kasumi_pmd_ops extern in the header file. Fixes: 2773c86d061a ("crypto/kasumi: add driver for KASUMI library") Cc: stable@dpdk.org Signed-off-by: Kevin Traynor Acked-by: Pablo de Lara --- diff --git a/drivers/crypto/kasumi/kasumi_pmd_private.h b/drivers/crypto/kasumi/kasumi_pmd_private.h index b7f1c428b4..abedcd616d 100644 --- a/drivers/crypto/kasumi/kasumi_pmd_private.h +++ b/drivers/crypto/kasumi/kasumi_pmd_private.h @@ -76,6 +76,6 @@ kasumi_set_session_parameters(MB_MGR *mgr, struct kasumi_session *sess, /** device specific operations function pointer structure */ -struct rte_cryptodev_ops *rte_kasumi_pmd_ops; +extern struct rte_cryptodev_ops *rte_kasumi_pmd_ops; #endif /* _KASUMI_PMD_PRIVATE_H_ */