[28/83] net/pfe: move alignment attribute on types

Message ID 1710949096-5786-29-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/net/pfe/base/pfe.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Patch

diff --git a/drivers/net/pfe/base/pfe.h b/drivers/net/pfe/base/pfe.h
index b9cf682..a97c47f 100644
--- a/drivers/net/pfe/base/pfe.h
+++ b/drivers/net/pfe/base/pfe.h
@@ -209,7 +209,7 @@  enum {
 #define UTIL_MASK	BIT(UTIL_ID)
 #endif
 
-struct pe_status {
+struct __rte_aligned(16) pe_status {
 	u32	cpu_state;
 	u32	activity_counter;
 	u32	rx;
@@ -222,7 +222,7 @@  struct pe_status {
 	u32	debug_indicator;
 	u32	debug[16];
 #endif
-} __rte_aligned(16);
+};
 
 struct pe_sync_mailbox {
 	u32 stop;