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/event/skeleton/skeleton_eventdev.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/event/skeleton/skeleton_eventdev.h b/drivers/event/skeleton/skeleton_eventdev.h index 9c1ed4e..283342a 100644 --- a/drivers/event/skeleton/skeleton_eventdev.h +++ b/drivers/event/skeleton/skeleton_eventdev.h @@ -24,17 +24,17 @@ rte_log(RTE_LOG_ERR, skeleton_eventdev_logtype, \ "%s(): " fmt "\n", __func__, ## args) -struct skeleton_eventdev { +struct __rte_cache_aligned skeleton_eventdev { uintptr_t reg_base; uint16_t device_id; uint16_t vendor_id; uint16_t subsystem_device_id; uint16_t subsystem_vendor_id; -} __rte_cache_aligned; +}; -struct skeleton_port { +struct __rte_cache_aligned skeleton_port { uint8_t port_id; -} __rte_cache_aligned; +}; static inline struct skeleton_eventdev * skeleton_pmd_priv(const struct rte_eventdev *eventdev) -- 1.8.3.1