From patchwork Tue Feb 13 18:34:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Retzlaff X-Patchwork-Id: 639 Return-Path: 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 ; 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 To: dev@dpdk.org Cc: Ajit Khaparde , Akhil Goyal , Andrew Rybchenko , Anoob Joseph , Bruce Richardson , Chaoyong He , Chenbo Xia , David Hunt , Ferruh Yigit , Harry van Haaren , Hemant Agrawal , Honnappa Nagarahalli , Jerin Jacob , Jingjing Wu , Jochen Behrens , John McNamara , Kiran Kumar K , Konstantin Ananyev , Maxime Coquelin , Nicolas Chautru , Nithin Dabilpuram , Ori Kam , Pavan Nikhilesh , Sachin Saxena , Somnath Kotur , Thomas Monjalon , Volodymyr Fialko , Zhirun Yan , david.marchand@redhat.com, Tyler Retzlaff 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 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 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(-)