[PATCH v2 75/83] baseband/null: move alignment attribute on types
Tyler Retzlaff
roretzla at linux.microsoft.com
Mon Apr 15 22:04:37 CEST 2024
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 at linux.microsoft.com>
Acked-by: Morten Brørup <mb at smartsharesystems.com>
---
drivers/baseband/null/bbdev_null.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/baseband/null/bbdev_null.c b/drivers/baseband/null/bbdev_null.c
index 662663c..75f7899 100644
--- a/drivers/baseband/null/bbdev_null.c
+++ b/drivers/baseband/null/bbdev_null.c
@@ -47,9 +47,9 @@ struct bbdev_private {
};
/* queue */
-struct bbdev_queue {
+struct __rte_cache_aligned bbdev_queue {
struct rte_ring *processed_pkts; /* Ring for processed packets */
-} __rte_cache_aligned;
+};
/* Get device info */
static void
--
1.8.3.1
More information about the dev
mailing list