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 7C1E043B36; Wed, 14 Feb 2024 13:19:39 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 34A6B4026A; Wed, 14 Feb 2024 13:19:39 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id CC46340263 for ; Wed, 14 Feb 2024 13:19:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1707913177; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jKCD3809s9LxiXIQileaN3bg4iFzdBYnyW7RCdqUIek=; b=D+RP1jLks9Lzp/Uylek8MbDwD90buOS2VhGFVCX6lsFaxWL5TA5JJpBEcKv+P3DBmeO3wT dY0WF/hYanqSrc06hLwDjSH3SPzvPtQfoTRu28kjSHqWKpeC3N6hH9uNKuxqxOOkUkCn+J F7pDL13oCTfpWOqhlkHSkStRzI/N7CI= Received: from mail-lf1-f70.google.com (mail-lf1-f70.google.com [209.85.167.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-662-SU52VmpmPuSMmmoGZOj26A-1; Wed, 14 Feb 2024 07:19:36 -0500 X-MC-Unique: SU52VmpmPuSMmmoGZOj26A-1 Received: by mail-lf1-f70.google.com with SMTP id 2adb3069b0e04-51147e9d9a2so4925839e87.3 for ; Wed, 14 Feb 2024 04:19:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707913174; x=1708517974; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jKCD3809s9LxiXIQileaN3bg4iFzdBYnyW7RCdqUIek=; b=PF8Qqq/KGC/xq428ilKe1XtAHLDx0DV3F6AKcDjM3kM2cwGRlgpqSA2Ks38lCSkkZN 8wfl7yAeQ7BkTGhUPSLYYjRfrZG3MSZVCCmhMvLwXwdxh2iXoJniOj8uhZ+HMLSgJywn uF9i0avbIUqGt6SEy4vxrayrJDDICYH4Moh1UfPQ3TU7IdZ4hhXvgt/33gBITc2Nq6hw A9cSTmVoF+Zo+ymVpXCTO7yXfSpvfPAtJmXjJXH+UqlNvV0bbFNZysptOh4x5jN9h5fr vL9E9Knr/+1ah2c9gBtOlI/UP9VITsd+W3KVIfefNuhImUr41/35eQCj6bJjQlEZBV5T N59Q== X-Gm-Message-State: AOJu0Yxti7W/bGGAFoe6fPMVqAq3wquFhz1GVVVLEt9nrTjFWS6M/WxB P2aageQ6fCG91n9S+Q1npCGgmKEYM4xPq7BCdbzmRhpadFV3fKkNSHepVTOiAmF9lIPpp6Y1lEX bWEBNRODEArcalICuOu6k6qdMe04Km9g8oqnBtDqR12v3fzcRCb22AVUPSIYiUpbIqKVmSbFSSd PJscUAF0ViLtxketg= X-Received: by 2002:ac2:4db6:0:b0:511:3a13:158 with SMTP id h22-20020ac24db6000000b005113a130158mr1796144lfe.35.1707913174427; Wed, 14 Feb 2024 04:19:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IHyCIFbwleS23zXPHmDPpvqIT3BPJEwaKa5QHvqwC0UrYZF4nxlDeaodYOR7BQSEIy76GhHTHozfWYsQeEz3Xg= X-Received: by 2002:ac2:4db6:0:b0:511:3a13:158 with SMTP id h22-20020ac24db6000000b005113a130158mr1796110lfe.35.1707913174095; Wed, 14 Feb 2024 04:19:34 -0800 (PST) MIME-Version: 1.0 References: <1706138276-28224-1-git-send-email-roretzla@linux.microsoft.com> <1707849292-19519-1-git-send-email-roretzla@linux.microsoft.com> In-Reply-To: <1707849292-19519-1-git-send-email-roretzla@linux.microsoft.com> From: David Marchand Date: Wed, 14 Feb 2024 13:19:21 +0100 Message-ID: Subject: Re: [PATCH v2 00/21] use C11 alignof To: Tyler Retzlaff Cc: dev@dpdk.org, 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 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 On Tue, Feb 13, 2024 at 7:35=E2=80=AFPM 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. > > 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. --=20 David Marchand