From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 10FA443C62; Wed, 6 Mar 2024 23:15:12 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 64EDE42EDD; Wed, 6 Mar 2024 23:14:57 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 9DD3242E33 for ; Wed, 6 Mar 2024 23:14:49 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id B8B3320B74C3; Wed, 6 Mar 2024 14:14:48 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com B8B3320B74C3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1709763288; bh=GyzmCJZG+220f0L05IVTdH4J7ajuO4kkENAgr2dT6yY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A0RK1x+9qHpPMbv1U8skuPsIOrEQpy10vzfAOo1LDm1+d8du5Mdmonmio/QoOlFOm LNHwuXtrbph54RhThHriKG0H2PSYT7KGhN3WYElx+3iWbr/fHTkzVLVEzLuKDi2SZe sj/61VCyyrhn++ahHLXMKogoKGSOZTFzCvubdSjw= From: Tyler Retzlaff To: dev@dpdk.org Cc: Bruce Richardson , Honnappa Nagarahalli , Vladimir Medvedkin , mb@smartsharesystems.com, david.marchand@redhat.com, Tyler Retzlaff Subject: [PATCH v3 3/5] rcu: use rte macro instead of GCC attribute Date: Wed, 6 Mar 2024 14:14:45 -0800 Message-Id: <1709763287-10713-4-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1709763287-10713-1-git-send-email-roretzla@linux.microsoft.com> References: <1709075273-6885-1-git-send-email-roretzla@linux.microsoft.com> <1709763287-10713-1-git-send-email-roretzla@linux.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Use existing __rte_may_alias macro from rte_common.h instead of directly using __attribute__((__may_alias__)). Signed-off-by: Tyler Retzlaff Reviewed-by: Morten Brørup --- 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