[54/83] crypto/octeontx: move alignment attribute on types

Message ID 1710949096-5786-55-git-send-email-roretzla@linux.microsoft.com (mailing list archive)
State Superseded
Delegated to: David Marchand
Headers
Series move alignment attribute on types |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Tyler Retzlaff March 20, 2024, 3:37 p.m. UTC
  Move location of __rte_aligned(a) to new conventional location. The new
placement between {struct,union} and the tag allows the desired
alignment to be imparted on the type regardless of the toolchain being
used for both C and C++. Additionally, it avoids confusion by Doxygen
when generating documentation.

Signed-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
---
 drivers/crypto/octeontx/otx_cryptodev_hw_access.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Patch

diff --git a/drivers/crypto/octeontx/otx_cryptodev_hw_access.h b/drivers/crypto/octeontx/otx_cryptodev_hw_access.h
index 4647d56..6e2afde 100644
--- a/drivers/crypto/octeontx/otx_cryptodev_hw_access.h
+++ b/drivers/crypto/octeontx/otx_cryptodev_hw_access.h
@@ -77,7 +77,7 @@  struct command_queue {
 /**
  * CPT VF device structure
  */
-struct cpt_vf {
+struct __rte_cache_aligned cpt_vf {
 	/** CPT instance */
 	struct cpt_instance instance;
 	/** Register start address */
@@ -111,7 +111,7 @@  struct cpt_vf {
 
 	/** Device name */
 	char dev_name[32];
-} __rte_cache_aligned;
+};
 
 /*
  * CPT Registers map for 81xx