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 <roret...@linux.microsoft.com> --- drivers/net/pfe/base/pfe.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 1.8.3.1