Skip to contentSkip to conversation

crypto/kasumi: fix gcc 10 fno-common error

PATCH Superseded Kevin Traynor 3 participants 5 messages May 5, 2020 – May 9, 2020 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto/kasumi: fix gcc 10 fno-common error

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.

---
 drivers/crypto/kasumi/kasumi_pmd_private.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/kasumi/kasumi_pmd_private.h +1 -1
index b7f1c428b..abedcd616 100644
@@ -77,5 +77,5 @@ 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_ */
Signature · 1 line
2.21.3
Acked-by on v1 1/1
#1 lore raw

Hi Kevin,

Quoted 9 lines

-----Original Message-----
From: Kevin Traynor <[email protected]>
Sent: Tuesday, May 5, 2020 1:55 PM
To: [email protected]; De Lara Guarch, Pablo <[email protected]>
Cc: [email protected]; Kevin Traynor <[email protected]>
Subject: [PATCH] crypto/kasumi: fix gcc 10 fno-common error

gcc 10 defaults to fno-common and it reports:

Quoted 7 lines

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.

Patch looks good, but you are missing fixes line and CC stable, right? Apart from that:

#2 lore raw
Quoted 15 lines · Pablo

Hi Kevin,

Quoted 13 lines

-----Original Message-----
From: Kevin Traynor <[email protected]>
Sent: Tuesday, May 5, 2020 1:55 PM
To: [email protected]; De Lara Guarch, Pablo <[email protected]>
Cc: [email protected]; Kevin Traynor <[email protected]>
Subject: [PATCH] crypto/kasumi: fix gcc 10 fno-common error

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

Quoted 9 lines
Quoted 3 lines

Fix by making rte_kasumi_pmd_ops extern in the header file.

Patch looks good, but you are missing fixes line and CC stable, right? Apart from that:

Thanks Pablo, sent v2 with the tags and your ack.

#3 lore raw

PATCH v2 1/1 crypto/kasumi: fix gcc 10 fno-common error

In reply to Kevin Traynor

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

---
v2: add tags and ack

---
 drivers/crypto/kasumi/kasumi_pmd_private.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/kasumi/kasumi_pmd_private.h +1 -1
index b7f1c428b..abedcd616 100644
@@ -77,5 +77,5 @@ 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_ */
Signature · 1 line
2.21.3
Applied
#4 lore raw
Quoted 6 lines

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

Quoted 8 lines

Fix by making rte_kasumi_pmd_ops extern in the header file.

Fixes 2773c86d061a ("crypto/kasumi: add driver for KASUMI library")

Applied to dpdk-next-crypto

Thanks.