crypto/octeontx2: fix build with gcc 10
GCC 10 defaults to -fno-common, this means a linker error will now be reported if the same global variable is defined in more than one compilation unit. Fixes: 2f8a1b963eb7 ("crypto/octeontx2: add PMD skeleton") Cc: stable@dpdk.org Signed-off-by: Timothy Redaelli <tredaelli@redhat.com> Acked-by: Anoob Joseph <anoobj@marvell.com>
This commit is contained in:
parent
974c8a9d2e
commit
983ab2b5d0
@ -24,6 +24,8 @@
|
||||
|
||||
int otx2_cpt_logtype;
|
||||
|
||||
uint8_t otx2_cryptodev_driver_id;
|
||||
|
||||
static struct rte_pci_id pci_id_cpt_table[] = {
|
||||
{
|
||||
RTE_PCI_DEVICE(PCI_VENDOR_ID_CAVIUM,
|
||||
|
@ -38,6 +38,6 @@ extern int otx2_cpt_logtype;
|
||||
/*
|
||||
* Crypto device driver ID
|
||||
*/
|
||||
uint8_t otx2_cryptodev_driver_id;
|
||||
extern uint8_t otx2_cryptodev_driver_id;
|
||||
|
||||
#endif /* _OTX2_CRYPTODEV_H_ */
|
||||
|
@ -16,6 +16,6 @@ enum otx2_cpt_egrp {
|
||||
OTX2_CPT_EGRP_AE = 2
|
||||
};
|
||||
|
||||
struct rte_cryptodev_ops otx2_cpt_ops;
|
||||
extern struct rte_cryptodev_ops otx2_cpt_ops;
|
||||
|
||||
#endif /* _OTX2_CRYPTODEV_OPS_H_ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user