Message ID | 1707849292-19519-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 6134543B0D; Tue, 13 Feb 2024 19:35:02 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C655342E1B; Tue, 13 Feb 2024 19:34:57 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 66E5F40A4B for <dev@dpdk.org>; Tue, 13 Feb 2024 19:34:54 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id A6ED3207EC9B; Tue, 13 Feb 2024 10:34:53 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com A6ED3207EC9B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1707849293; bh=FK8IlOONhLnp/S4Ur69nJqWkBlBX9lE469awaa13h2M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=juVIbD8zJL6WiF8ZkFDlHprfseKrsvgXboYx8SDNUNjlJnwqVL3zSGDPl7b1lXFnk SI4sR6S26EwvfJO9kJMWTkOsAw0Cgb7N8AeW/Ze+PI6cRv7yUjmyAJTmZN/ikp9Xh6 jOwJ8NAUEA1R73mx5TPMe8Gmb56MLWreI7mDwAQ8= From: Tyler Retzlaff <roretzla@linux.microsoft.com> To: dev@dpdk.org Cc: Ajit Khaparde <ajit.khaparde@broadcom.com>, Akhil Goyal <gakhil@marvell.com>, Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>, Anoob Joseph <anoobj@marvell.com>, Bruce Richardson <bruce.richardson@intel.com>, Chaoyong He <chaoyong.he@corigine.com>, Chenbo Xia <chenbox@nvidia.com>, David Hunt <david.hunt@intel.com>, Ferruh Yigit <ferruh.yigit@amd.com>, Harry van Haaren <harry.van.haaren@intel.com>, Hemant Agrawal <hemant.agrawal@nxp.com>, Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>, Jerin Jacob <jerinj@marvell.com>, Jingjing Wu <jingjing.wu@intel.com>, Jochen Behrens <jbehrens@vmware.com>, John McNamara <john.mcnamara@intel.com>, Kiran Kumar K <kirankumark@marvell.com>, Konstantin Ananyev <konstantin.v.ananyev@yandex.ru>, Maxime Coquelin <maxime.coquelin@redhat.com>, Nicolas Chautru <nicolas.chautru@intel.com>, Nithin Dabilpuram <ndabilpuram@marvell.com>, Ori Kam <orika@nvidia.com>, Pavan Nikhilesh <pbhagavatula@marvell.com>, Sachin Saxena <sachin.saxena@nxp.com>, Somnath Kotur <somnath.kotur@broadcom.com>, Thomas Monjalon <thomas@monjalon.net>, Volodymyr Fialko <vfialko@marvell.com>, Zhirun Yan <zhirun.yan@intel.com>, david.marchand@redhat.com, Tyler Retzlaff <roretzla@linux.microsoft.com> Subject: [PATCH v2 00/21] use C11 alignof Date: Tue, 13 Feb 2024 10:34:31 -0800 Message-Id: <1707849292-19519-1-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1706138276-28224-1-git-send-email-roretzla@linux.microsoft.com> References: <1706138276-28224-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 C11 alignof
|
|
Message
Tyler Retzlaff
Feb. 13, 2024, 6:34 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. v2: * expand series to replace use in entire source tree, now includes app, drivers, examples in addition to lib. Tyler Retzlaff (21): 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 test: use C11 alignof examples: use C11 alignof app/eventdev: use C11 alignof drivers/bus: use C11 alignof event/sw: use C11 alignof net/bnxt: use C11 alignof net/iavf: use C11 alignof net/nfp: use C11 alignof net/sfc: use C11 alignof net/virtio: use C11 alignof net/vmxnet3: use C11 alignof devtools: forbid direct use of compiler alignof and typeof app/test-eventdev/test_order_common.c | 6 ++++-- app/test/test_distributor.c | 3 ++- app/test/test_graph.c | 3 ++- app/test/test_mbuf.c | 9 +++++---- app/test/test_ring_stress_impl.h | 6 ++++-- devtools/checkpatches.sh | 16 ++++++++++++++++ drivers/bus/dpaa/dpaa_bus.c | 3 ++- drivers/bus/fslmc/fslmc_bus.c | 3 ++- drivers/event/sw/sw_evdev_selftest.c | 3 ++- drivers/net/bnxt/bnxt_ethdev.c | 3 ++- drivers/net/iavf/iavf_ethdev.c | 3 ++- drivers/net/iavf/iavf_ipsec_crypto.c | 4 +++- drivers/net/iavf/iavf_testpmd.c | 3 ++- drivers/net/nfp/nfp_ipsec.c | 4 +++- drivers/net/sfc/sfc_dp.c | 5 +++-- drivers/net/virtio/virtio_rxtx.c | 7 ++++--- drivers/net/vmxnet3/vmxnet3_ethdev.c | 3 ++- examples/bbdev_app/main.c | 3 ++- examples/rxtx_callbacks/main.c | 3 ++- 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 ++- 29 files changed, 87 insertions(+), 37 deletions(-)
Comments
On Tue, Feb 13, 2024 at 7:35 PM 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. > > v2: > * expand series to replace use in entire source tree, now > includes app, drivers, examples in addition to lib. > > Tyler Retzlaff (21): > 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 > test: use C11 alignof > examples: use C11 alignof > app/eventdev: use C11 alignof > drivers/bus: use C11 alignof > event/sw: use C11 alignof > net/bnxt: use C11 alignof > net/iavf: use C11 alignof > net/nfp: use C11 alignof > net/sfc: use C11 alignof > net/virtio: use C11 alignof > net/vmxnet3: use C11 alignof > devtools: forbid direct use of compiler alignof and typeof > > app/test-eventdev/test_order_common.c | 6 ++++-- > app/test/test_distributor.c | 3 ++- > app/test/test_graph.c | 3 ++- > app/test/test_mbuf.c | 9 +++++---- > app/test/test_ring_stress_impl.h | 6 ++++-- > devtools/checkpatches.sh | 16 ++++++++++++++++ > drivers/bus/dpaa/dpaa_bus.c | 3 ++- > drivers/bus/fslmc/fslmc_bus.c | 3 ++- > drivers/event/sw/sw_evdev_selftest.c | 3 ++- > drivers/net/bnxt/bnxt_ethdev.c | 3 ++- > drivers/net/iavf/iavf_ethdev.c | 3 ++- > drivers/net/iavf/iavf_ipsec_crypto.c | 4 +++- > drivers/net/iavf/iavf_testpmd.c | 3 ++- > drivers/net/nfp/nfp_ipsec.c | 4 +++- > drivers/net/sfc/sfc_dp.c | 5 +++-- > drivers/net/virtio/virtio_rxtx.c | 7 ++++--- > drivers/net/vmxnet3/vmxnet3_ethdev.c | 3 ++- > examples/bbdev_app/main.c | 3 ++- > examples/rxtx_callbacks/main.c | 3 ++- > 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 ++- > 29 files changed, 87 insertions(+), 37 deletions(-) Thanks Tyler. Series applied.