[PATCH v2 3/3] rcu: use rte macro instead of GCC attribute
Tyler Retzlaff
roretzla at linux.microsoft.com
Wed Feb 28 19:47:56 CET 2024
Use existing __rte_may_alias macro from rte_common.h instead of
directly using __attribute__((__may_alias__)).
Signed-off-by: Tyler Retzlaff <roretzla at linux.microsoft.com>
Reviewed-by: Morten Brørup <mb at smartsharesystems.com>
---
lib/rcu/rcu_qsbr_pvt.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/rcu/rcu_qsbr_pvt.h b/lib/rcu/rcu_qsbr_pvt.h
index 5fd7ca2..39b0d50 100644
--- a/lib/rcu/rcu_qsbr_pvt.h
+++ b/lib/rcu/rcu_qsbr_pvt.h
@@ -53,6 +53,6 @@ struct rte_rcu_qsbr_dq {
typedef struct {
uint64_t token; /**< Token */
uint8_t elem[0]; /**< Pointer to user element */
-} __attribute__((__may_alias__)) __rte_rcu_qsbr_dq_elem_t;
+} __rte_may_alias __rte_rcu_qsbr_dq_elem_t;
#endif /* _RTE_RCU_QSBR_PVT_H_ */
--
1.8.3.1
More information about the dev
mailing list