Message ID | 1706138276-28224-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 32F64439BD; Thu, 25 Jan 2024 00:18:03 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EC613402CD; Thu, 25 Jan 2024 00:18:02 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 2F07A4026C for <dev@dpdk.org>; Thu, 25 Jan 2024 00:18:01 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id 7EEEA20E567C; Wed, 24 Jan 2024 15:18:00 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 7EEEA20E567C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1706138280; bh=aaoVVyrn8ghg3BGviZFaVn3ocL0ZaOFPbsqN19hrBx0=; h=From:To:Cc:Subject:Date:From; b=c4K0/r0A2sJDx1M7/CEWW8VLdv4t2SK3+byWev0ncDXPWLfYIgUBXAiYjmjoAwC3y 2DAXWvuYUV0edOl64y+6CYLPriPmXg94RLCIzAWY+HgJk66qhU+lZPeSDklB9Dpsck 1q3ZRP/p0wrG8SzEUS+gY8KJDsLQ8eGQih8htw2s= From: Tyler Retzlaff <roretzla@linux.microsoft.com> To: dev@dpdk.org Cc: Akhil Goyal <gakhil@marvell.com>, Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>, Anoob Joseph <anoobj@marvell.com>, Ferruh Yigit <ferruh.yigit@amd.com>, Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>, Jerin Jacob <jerinj@marvell.com>, Konstantin Ananyev <konstantin.v.ananyev@yandex.ru>, Nithin Dabilpuram <ndabilpuram@marvell.com>, Ori Kam <orika@nvidia.com>, Pavan Nikhilesh <pbhagavatula@marvell.com>, Thomas Monjalon <thomas@monjalon.net>, Volodymyr Fialko <vfialko@marvell.com>, Tyler Retzlaff <roretzla@linux.microsoft.com> Subject: [PATCH 0/9] use C11 alignof Date: Wed, 24 Jan 2024 15:17:47 -0800 Message-Id: <1706138276-28224-1-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 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 C11 alignof | |
Message
Tyler Retzlaff
Jan. 24, 2024, 11:17 p.m. UTC
Replace use of __alignof__(T) and __alignof__(e) with C11 alignof(T) and alignof(typeof(e)) respectively to improve portability of the code between toolchains. Tyler Retzlaff (9): ring: use C11 alignof mbuf: use C11 alignof ethdev: use C11 alignof eventdev: use C11 alignof stack: use C11 alignof node: use C11 alignof pdcp: use C11 alignof reorder: use C11 alignof security: use C11 alignof lib/ethdev/ethdev_driver.c | 3 ++- lib/ethdev/rte_flow.c | 3 ++- lib/eventdev/rte_eventdev.c | 3 ++- lib/mbuf/rte_mbuf_dyn.c | 3 ++- lib/node/node_private.h | 4 +++- lib/pdcp/rte_pdcp.c | 4 +++- lib/reorder/rte_reorder.c | 3 ++- lib/ring/rte_ring.c | 3 ++- lib/security/rte_security.c | 5 +++-- lib/stack/rte_stack.c | 3 ++- 10 files changed, 23 insertions(+), 11 deletions(-)
Comments
> From: Tyler Retzlaff [mailto:roretzla@linux.microsoft.com] > Sent: Thursday, 25 January 2024 00.18 > > Replace use of __alignof__(T) and __alignof__(e) with C11 alignof(T) > and alignof(typeof(e)) respectively to improve portability of the code > between toolchains. > > Tyler Retzlaff (9): > ring: use C11 alignof > mbuf: use C11 alignof > ethdev: use C11 alignof > eventdev: use C11 alignof > stack: use C11 alignof > node: use C11 alignof > pdcp: use C11 alignof > reorder: use C11 alignof > security: use C11 alignof > > lib/ethdev/ethdev_driver.c | 3 ++- > lib/ethdev/rte_flow.c | 3 ++- > lib/eventdev/rte_eventdev.c | 3 ++- > lib/mbuf/rte_mbuf_dyn.c | 3 ++- > lib/node/node_private.h | 4 +++- > lib/pdcp/rte_pdcp.c | 4 +++- > lib/reorder/rte_reorder.c | 3 ++- > lib/ring/rte_ring.c | 3 ++- > lib/security/rte_security.c | 5 +++-- > lib/stack/rte_stack.c | 3 ++- > 10 files changed, 23 insertions(+), 11 deletions(-) > > -- Series-Acked-by: Morten Brørup <mb@smartsharesystems.com>
Series-acked-by: Chengwen Feng <fengchengwen@huawei.com> On 2024/1/25 7:17, Tyler Retzlaff wrote: > Replace use of __alignof__(T) and __alignof__(e) with C11 alignof(T) > and alignof(typeof(e)) respectively to improve portability of the code > between toolchains. > > Tyler Retzlaff (9): > ring: use C11 alignof > mbuf: use C11 alignof > ethdev: use C11 alignof > eventdev: use C11 alignof > stack: use C11 alignof > node: use C11 alignof > pdcp: use C11 alignof > reorder: use C11 alignof > security: use C11 alignof > > lib/ethdev/ethdev_driver.c | 3 ++- > lib/ethdev/rte_flow.c | 3 ++- > lib/eventdev/rte_eventdev.c | 3 ++- > lib/mbuf/rte_mbuf_dyn.c | 3 ++- > lib/node/node_private.h | 4 +++- > lib/pdcp/rte_pdcp.c | 4 +++- > lib/reorder/rte_reorder.c | 3 ++- > lib/ring/rte_ring.c | 3 ++- > lib/security/rte_security.c | 5 +++-- > lib/stack/rte_stack.c | 3 ++- > 10 files changed, 23 insertions(+), 11 deletions(-) >
On Thu, Jan 25, 2024 at 12:18 AM Tyler Retzlaff <roretzla@linux.microsoft.com> wrote: > > Replace use of __alignof__(T) and __alignof__(e) with C11 alignof(T) > and alignof(typeof(e)) respectively to improve portability of the code > between toolchains. > > Tyler Retzlaff (9): > ring: use C11 alignof > mbuf: use C11 alignof > ethdev: use C11 alignof > eventdev: use C11 alignof > stack: use C11 alignof > node: use C11 alignof > pdcp: use C11 alignof > reorder: use C11 alignof > security: use C11 alignof > > lib/ethdev/ethdev_driver.c | 3 ++- > lib/ethdev/rte_flow.c | 3 ++- > lib/eventdev/rte_eventdev.c | 3 ++- > lib/mbuf/rte_mbuf_dyn.c | 3 ++- > lib/node/node_private.h | 4 +++- > lib/pdcp/rte_pdcp.c | 4 +++- > lib/reorder/rte_reorder.c | 3 ++- > lib/ring/rte_ring.c | 3 ++- > lib/security/rte_security.c | 5 +++-- > lib/stack/rte_stack.c | 3 ++- > 10 files changed, 23 insertions(+), 11 deletions(-) The change is trivial, but without a check in checkpatches.sh, I imagine new occurence to be introduced in the future. Btw, as it is trivial, please apply this change to the whole tree.