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 8777F43C62; Wed, 6 Mar 2024 23:15:17 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 952C142EE4; Wed, 6 Mar 2024 23:14:58 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 3E15B400EF for ; Wed, 6 Mar 2024 23:14:50 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id D369F20B74C5; Wed, 6 Mar 2024 14:14:48 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com D369F20B74C5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1709763288; bh=HIO5cH5O8UnvZ0dU71S6+fFz+/infiZ0fdKnx4aOUnA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RVfSa8c+kG1HcI158SgAd1Pel4TEe7LsQFSipjAIejkffAX59BTZZTQMewP/kb6H/ 01vUGXM6J0vAni4Wi9UqgzhCRMxns1zgHGRHt3QmXDFuT33FdPdxmUfrNunJ+F2Tep nVMjNcOVsAN/Y2dI4t9zjM3XTbyCHFHxeLnMpQ2g= 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 5/5] net/cxgbe: use rte macro instead of GCC attribute Date: Wed, 6 Mar 2024 14:14:47 -0800 Message-Id: <1709763287-10713-6-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> 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 --- drivers/net/cxgbe/base/common.h | 2 +- drivers/net/cxgbe/base/t4_hw.c | 2 +- drivers/net/cxgbe/base/t4vf_hw.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/cxgbe/base/common.h b/drivers/net/cxgbe/base/common.h index 4482ddb..8dc7fab 100644 --- a/drivers/net/cxgbe/base/common.h +++ b/drivers/net/cxgbe/base/common.h @@ -428,7 +428,7 @@ static inline unsigned int core_ticks_to_us(const struct adapter *adapter, int t4_wr_mbox_meat_timeout(struct adapter *adap, int mbox, const void *cmd, int size, void *rpl, bool sleep_ok, int timeout); int t4_wr_mbox_meat(struct adapter *adap, int mbox, - const void __attribute__((__may_alias__)) *cmd, int size, + const void __rte_may_alias *cmd, int size, void *rpl, bool sleep_ok); static inline int t4_wr_mbox_timeout(struct adapter *adap, int mbox, diff --git a/drivers/net/cxgbe/base/t4_hw.c b/drivers/net/cxgbe/base/t4_hw.c index bed755f..d02da39 100644 --- a/drivers/net/cxgbe/base/t4_hw.c +++ b/drivers/net/cxgbe/base/t4_hw.c @@ -291,7 +291,7 @@ static void fw_asrt(struct adapter *adap, u32 mbox_addr) * the return value is the error code indicated by FW (negated). */ int t4_wr_mbox_meat_timeout(struct adapter *adap, int mbox, - const void __attribute__((__may_alias__)) *cmd, + const void __rte_may_alias *cmd, int size, void *rpl, bool sleep_ok, int timeout) { /* diff --git a/drivers/net/cxgbe/base/t4vf_hw.c b/drivers/net/cxgbe/base/t4vf_hw.c index 46d24a6..573ccb1 100644 --- a/drivers/net/cxgbe/base/t4vf_hw.c +++ b/drivers/net/cxgbe/base/t4vf_hw.c @@ -68,7 +68,7 @@ static void get_mbox_rpl(struct adapter *adap, __be64 *rpl, int nflit, * the return value is the error code indicated by FW (negated). */ int t4vf_wr_mbox_core(struct adapter *adapter, - const void __attribute__((__may_alias__)) *cmd, + const void __rte_may_alias *cmd, int size, void *rpl, bool sleep_ok) { /* -- 1.8.3.1