Skip to content

Commit

Permalink
crypto/ccp: fix queue alignment
Browse files Browse the repository at this point in the history
[ upstream commit b3bf236 ]

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: ef4b04f ("crypto/ccp: support device init")

Signed-off-by: David Marchand <david.marchand@redhat.com>
  • Loading branch information
david-marchand authored and kevintraynor committed Feb 19, 2020
1 parent 368b63c commit ccd970c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/crypto/ccp/ccp_dev.h
Expand Up @@ -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.
Expand Down

0 comments on commit ccd970c

Please sign in to comment.