Skip to contentSkip to conversation

crypto/ccp: fix queue alignment

PATCH Applied David Marchand 2 participants 2 messages Feb 7, 2020 – Feb 12, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto/ccp: fix queue alignment

Caught by compiling with -fno-common.
A ____cacheline_aligned symbol can be found in the crypto/ccp driver object files.

Looking at this driver source, the ____cacheline_aligned (kernel?) alignment macro is undefined.
The compiler treats this as a symbol definition and generates a global symbol.

Fixes ef4b04f87fa6 ("crypto/ccp: support device init")
---
 drivers/crypto/ccp/ccp_dev.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/ccp/ccp_dev.h +1 -1
index f4ad9eafd..37e04218c 100644
@@ -220,7 +220,7 @@ struct ccp_queue {
 	/**< lsb assigned for sha ctx */
 	uint32_t sb_hmac;
 	/**< lsb assigned for hmac ctx */
-} ____cacheline_aligned;
+} __rte_cache_aligned;
 
 /**
  * A structure describing a CCP device.
Signature · 1 line
2.23.0
Applied
#1 lore raw
Quoted 10 lines

Caught by compiling with -fno-common.
A ____cacheline_aligned symbol can be found in the crypto/ccp driver object files.

Looking at this driver source, the ____cacheline_aligned (kernel?) alignment macro is undefined.
The compiler treats this as a symbol definition and generates a global symbol.

Quoted 5 lines
Fixes ef4b04f87fa6 ("crypto/ccp: support device init")

---

Applied to dpdk-next-crypto

Thanks.