[36/83] regex/cn9k: move alignment attribute on types

Message ID 1710949096-5786-37-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/regex/cn9k/cn9k_regexdev.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Patch

diff --git a/drivers/regex/cn9k/cn9k_regexdev.h b/drivers/regex/cn9k/cn9k_regexdev.h
index c715502..e24a800 100644
--- a/drivers/regex/cn9k/cn9k_regexdev.h
+++ b/drivers/regex/cn9k/cn9k_regexdev.h
@@ -21,7 +21,7 @@ 
 /**
  * Device private data
  */
-struct cn9k_ree_data {
+struct __rte_cache_aligned cn9k_ree_data {
 	uint32_t regexdev_capa;
 	uint64_t rule_flags;
 	/**< Feature flags exposes HW/SW features for the given device */
@@ -39,6 +39,6 @@  struct cn9k_ree_data {
 	/**< rules to be compiled */
 	uint16_t nb_rules;
 	/**< number of rules */
-} __rte_cache_aligned;
+};
 
 #endif /* _CN9K_REGEXDEV_H_ */