Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D1061606A691 for ; Thu, 3 Dec 2026 12:16:02 +0000 (UTC) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C28E9402A7; Thu, 3 Dec 2026 13:16:00 +0100 (CET) Received: from dkmailrelay1.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTPS id 3558A4028B; Thu, 3 Dec 2026 13:15:59 +0100 (CET) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesys.local [192.168.4.10]) by dkmailrelay1.smartsharesystems.com (Postfix) with ESMTP id DEFB920A9B; Thu, 3 Dec 2026 13:15:56 +0100 (CET) Content-class: urn:content-classes:message X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: [PATCH v21] eal: add may_alias to unaligned typedefs X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Thu, 3 Dec 2026 13:15:55 +0100 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35F65B67@smartserver.smartshare.dk> In-Reply-To: <20261202173051.59927-1-scott.k.mitch1@gmail.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH v21] eal: add may_alias to unaligned typedefs Thread-Index: Ad2CgxBb5zqbCpAmSKm8gLeaK35ncQAnAE/w References: <20261201201801.23189-1-scott.k.mitch1@gmail.com> <20261202173051.59927-1-scott.k.mitch1@gmail.com> From: =?iso-8859-1?Q?Morten_Br=F8rup?= To: "Scott Mitchell" , Cc: , , , "Cyril Chemparathy" , X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Archive: List-Post: List-Help: List-Subscribe: , X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 > @@ -158,6 +168,9 @@ typedef __unaligned uint32_t unaligned_uint32_t; > typedef __unaligned uint16_t unaligned_uint16_t; > #else > +__rte_may_alias > typedef uint64_t unaligned_uint64_t __rte_aligned(1); > +__rte_may_alias > typedef uint32_t unaligned_uint32_t __rte_aligned(1); > +__rte_may_alias > typedef uint16_t unaligned_uint16_t __rte_aligned(1); > #endif > @@ -178,13 +191,4 @@ typedef uint16_t unaligned_uint16_t > __rte_aligned(1); > #endif I still prefer __rte_may_alias next to __rte_aligned(). Although positioning of attributes is flexible, we should try to = maintain some consistency. We can accept patches, even though checkpatch complains. With __rte_may_alias next to __rte_aligned(), and patch description = updated accordingly, you may add Reviewed-by: Morten Br=F8rup = to v22.