Message ID | 1709146076-22254-1-git-send-email-roretzla@linux.microsoft.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id EDE6D43C28; Wed, 28 Feb 2024 19:48:05 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 251DD4114B; Wed, 28 Feb 2024 19:48:01 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 5DDF2410F2 for <dev@dpdk.org>; Wed, 28 Feb 2024 19:47:58 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id 7F49520B74C0; Wed, 28 Feb 2024 10:47:57 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 7F49520B74C0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1709146077; bh=pNFRlE3Tblsz5R9Yr+/s/DqTpeZKnWJGWe95p3kqYrk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qJ0/UmAJJz97hQMOlHcITVgNUKLqiopAS64+zvqHf1ku7qS5IpPao24UOXTN7E1mH uDWYi4zH+0Te2bgRE1OSPhkvj+CxmIl8MJz5obXEQMCzMOEDxfz9GKM+VQNaErCScs KOrT+5PW5AZQ1nZxiDGtUHJBlspDGyl5foKseGIA= From: Tyler Retzlaff <roretzla@linux.microsoft.com> To: dev@dpdk.org Cc: Bruce Richardson <bruce.richardson@intel.com>, Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>, Vladimir Medvedkin <vladimir.medvedkin@intel.com>, mb@smartsharesystems.com, Tyler Retzlaff <roretzla@linux.microsoft.com> Subject: [PATCH v2 0/3] use rte macros instead of GCC __attribute Date: Wed, 28 Feb 2024 10:47:53 -0800 Message-Id: <1709146076-22254-1-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1709075273-6885-1-git-send-email-roretzla@linux.microsoft.com> References: <1709075273-6885-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 <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org |
Series |
use rte macros instead of GCC __attribute
|
|
Message
Tyler Retzlaff
Feb. 28, 2024, 6:47 p.m. UTC
Clean up direct uses of GCC __attribute__ in libs outside of EAL. A checkpatch check already warns for new additions. v2: * fix typo __rte_pure -> __rte_may_alias in rcu commit message Tyler Retzlaff (3): eal: add rte pure attribute macro lpm: use rte macro instead of GCC attribute rcu: use rte macro instead of GCC attribute lib/eal/include/rte_common.h | 9 +++++++++ lib/lpm/rte_lpm.c | 4 ++-- lib/lpm/rte_lpm6.c | 2 +- lib/rcu/rcu_qsbr_pvt.h | 2 +- 4 files changed, 13 insertions(+), 4 deletions(-)
Comments
ping. Doesn't seem this series carries high risk, worth considering for rc2/rc3? On Wed, Feb 28, 2024 at 10:47:53AM -0800, Tyler Retzlaff wrote: > Clean up direct uses of GCC __attribute__ in libs outside of EAL. A > checkpatch check already warns for new additions. > > v2: > * fix typo __rte_pure -> __rte_may_alias in rcu commit message > > Tyler Retzlaff (3): > eal: add rte pure attribute macro > lpm: use rte macro instead of GCC attribute > rcu: use rte macro instead of GCC attribute > > lib/eal/include/rte_common.h | 9 +++++++++ > lib/lpm/rte_lpm.c | 4 ++-- > lib/lpm/rte_lpm6.c | 2 +- > lib/rcu/rcu_qsbr_pvt.h | 2 +- > 4 files changed, 13 insertions(+), 4 deletions(-) > > -- > 1.8.3.1
On Wed, Feb 28, 2024 at 7:48 PM Tyler Retzlaff <roretzla@linux.microsoft.com> wrote: > > Clean up direct uses of GCC __attribute__ in libs outside of EAL. A > checkpatch check already warns for new additions. > > v2: > * fix typo __rte_pure -> __rte_may_alias in rcu commit message > > Tyler Retzlaff (3): > eal: add rte pure attribute macro > lpm: use rte macro instead of GCC attribute > rcu: use rte macro instead of GCC attribute > > lib/eal/include/rte_common.h | 9 +++++++++ > lib/lpm/rte_lpm.c | 4 ++-- > lib/lpm/rte_lpm6.c | 2 +- > lib/rcu/rcu_qsbr_pvt.h | 2 +- > 4 files changed, 13 insertions(+), 4 deletions(-) Introducing __rte_pure and converting lib/lpm looks fine. But please finish the job for the other occurence in the tree as it is a mechanical change. Thanks.
On Wed, Mar 06, 2024 at 09:49:31PM +0100, David Marchand wrote: > On Wed, Feb 28, 2024 at 7:48 PM Tyler Retzlaff > <roretzla@linux.microsoft.com> wrote: > > > > Clean up direct uses of GCC __attribute__ in libs outside of EAL. A > > checkpatch check already warns for new additions. > > > > v2: > > * fix typo __rte_pure -> __rte_may_alias in rcu commit message > > > > Tyler Retzlaff (3): > > eal: add rte pure attribute macro > > lpm: use rte macro instead of GCC attribute > > rcu: use rte macro instead of GCC attribute > > > > lib/eal/include/rte_common.h | 9 +++++++++ > > lib/lpm/rte_lpm.c | 4 ++-- > > lib/lpm/rte_lpm6.c | 2 +- > > lib/rcu/rcu_qsbr_pvt.h | 2 +- > > 4 files changed, 13 insertions(+), 4 deletions(-) > > Introducing __rte_pure and converting lib/lpm looks fine. > But please finish the job for the other occurence in the tree as it is > a mechanical change. Sure, it's trivial that I don't have to burn it in on lib first. Will submit an updated rev. > > Thanks. > > -- > David Marchand