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 B0D06439EA; Sun, 28 Jan 2024 09:57:19 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 37944402AB; Sun, 28 Jan 2024 09:57:19 +0100 (CET) Received: from dkmailrelay1.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id 4778E40265 for ; Sun, 28 Jan 2024 09:57:17 +0100 (CET) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesys.local [192.168.4.10]) by dkmailrelay1.smartsharesystems.com (Postfix) with ESMTP id 1DF6B2011D; Sun, 28 Jan 2024 09:57:15 +0100 (CET) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Subject: RE: [PATCH] RFC: use C11 alignas instead of GCC attribute aligned X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Sun, 28 Jan 2024 09:57:10 +0100 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35E9F1AA@smartserver.smartshare.dk> In-Reply-To: <635f0d9f-6665-426b-b778-d61e5e732fbe@lysator.liu.se> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH] RFC: use C11 alignas instead of GCC attribute aligned Thread-Index: AdpRVS/oIrz3Y8znTkKXY1g3r7NfkwAbWlAg References: <1700069997-4399-1-git-send-email-roretzla@linux.microsoft.com> <20240125183713.GA27715@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> <98CBD80474FA8B44BF855DF32C47DC35E9F1A3@smartserver.smartshare.dk> <91ba1ece-10dd-4698-acd9-6b51cfc63cd9@lysator.liu.se> <98CBD80474FA8B44BF855DF32C47DC35E9F1A7@smartserver.smartshare.dk> <635f0d9f-6665-426b-b778-d61e5e732fbe@lysator.liu.se> From: =?utf-8?B?TW9ydGVuIEJyw7hydXA=?= To: =?utf-8?B?TWF0dGlhcyBSw7ZubmJsb20=?= , "Tyler Retzlaff" , Cc: =?utf-8?B?TWF0dGlhcyBSw7ZubmJsb20=?= , "Anatoly Burakov" , "Bruce Richardson" , "David Christensen" , "Harry van Haaren" , "Konstantin Ananyev" , "Min Zhou" , "Ruifeng Wang" , "Stanislaw Kardach" , 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 PiBGcm9tOiBNYXR0aWFzIFLDtm5uYmxvbSBbbWFpbHRvOmhvZm9yc0BseXNhdG9yLmxpdS5zZV0N Cj4gU2VudDogU2F0dXJkYXksIDI3IEphbnVhcnkgMjAyNCAyMC4xNQ0KPiANCj4gT24gMjAyNC0w MS0yNiAxMToxOCwgTW9ydGVuIEJyw7hydXAgd3JvdGU6DQo+ID4+IEZyb206IE1hdHRpYXMgUsO2 bm5ibG9tIFttYWlsdG86aG9mb3JzQGx5c2F0b3IubGl1LnNlXQ0KPiA+PiBTZW50OiBGcmlkYXks IDI2IEphbnVhcnkgMjAyNCAxMS4wNQ0KPiA+Pg0KPiA+PiBPbiAyMDI0LTAxLTI1IDIzOjUzLCBN b3J0ZW4gQnLDuHJ1cCB3cm90ZToNCj4gPj4+PiBGcm9tOiBUeWxlciBSZXR6bGFmZiBbbWFpbHRv OnJvcmV0emxhQGxpbnV4Lm1pY3Jvc29mdC5jb21dDQo+ID4+Pj4gU2VudDogVGh1cnNkYXksIDI1 IEphbnVhcnkgMjAyNCAxOS4zNw0KPiA+Pj4+DQo+ID4+Pj4gcGluZy4NCj4gPj4+Pg0KPiA+Pj4+ IFBsZWFzZSByZXZpZXcgdGhpcyB0aHJlYWQgaWYgeW91IGhhdmUgdGltZSwgdGhlIG1haW4gcG9p bnQgb2YNCj4gPj4+PiBkaXNj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