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 DC8CA439BC; Wed, 24 Jan 2024 23:57:10 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6A001402A6; Wed, 24 Jan 2024 23:57:10 +0100 (CET) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2042.outbound.protection.outlook.com [40.107.7.42]) by mails.dpdk.org (Postfix) with ESMTP id 44C3F4027A for ; Wed, 24 Jan 2024 23:57:09 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bgYpUk99yZi8KfkGhOs02yYlzckWygjmppK51TBKpjkTc0cSxiRfPJ2bPdqo6T+nGbfHixfanKSPUEEyu8Y0gRHC+0M91R82e2SSv/Kw0/jDGhhINXp0aHCQdaZkC7coagRfXMIj4yWRfwVYeSF/+nfMXondrl+5l1LR3gvXyJHEIBKpMinZueq+1ITUyQR0S8Pudg9a4Ddjdhh9DNo3zBQ1n3jAB3xbge6rREpTGYx+Bc9oQ/x2uladrBTEwRRlzPLxt5HA4MBb6mW7nJ2am0ICl4JCIpLwP1/aZw6e3Mq8DTkORSPjyoQs8H8LGzM21LyzzORgwjqY2THen3fnVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=IJlyrWVmGH5ZNaseryEcGC92OxSKYMqCyKzAlJDpc0o=; b=V6YPfqJQ1SsArQFlDet5+sSDimGA0mp+JxcaLdNiI4ozkAOxRHRP44P91mkWfEJ5wqXUpP2x+R2n+NArxLz9TaHR2hKocL43zrPOMdS5wij7VGAn43H6XrFflV+s/YtMl57O3PZqXtxa4TRO+fcEGe8rx015clBNgXxqvYxIPr9V5VlzUd4eNmuLAmZUf1a8+oMZSEb8AePlC23OLF/5DYbV29JgElo+qhNQ6JMkgCb+MUf2tlLC0hnaNSJZ9WX1Nv6Fse/f59frdDs8ZSMKEFdS28plQNPk65mMqdwZOOIwsW07w3yX5Nu/g+eS/8tjepOMZq9Tgs4WFz/KFhnR2w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IJlyrWVmGH5ZNaseryEcGC92OxSKYMqCyKzAlJDpc0o=; b=dhQEf2cfFCd/zFhzYPUXv9bwZVYPdp1BQeqhdEpBduccFR0S8CjDukenWq2t/OMlUOKdiv2PnzN8s0IwPEfkrYEobWLy+XqRwW/EG+2mnSV20EddkK5ELsPaknkA8sNI25fYCxD5oa1Ox1XYbdoEh4yX7K1OjtjEbz6qwp9AkIo= Received: from DBAPR08MB5814.eurprd08.prod.outlook.com (2603:10a6:10:1b1::6) by DU0PR08MB8397.eurprd08.prod.outlook.com (2603:10a6:10:407::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7228.22; Wed, 24 Jan 2024 22:57:06 +0000 Received: from DBAPR08MB5814.eurprd08.prod.outlook.com ([fe80::6ee5:b854:81e:c23e]) by DBAPR08MB5814.eurprd08.prod.outlook.com ([fe80::6ee5:b854:81e:c23e%7]) with mapi id 15.20.7228.022; Wed, 24 Jan 2024 22:57:06 +0000 From: Honnappa Nagarahalli To: Tyler Retzlaff , "dev@dpdk.org" CC: Bruce Richardson , Sameh Gobriel , Vladimir Medvedkin , Yipeng Wang , Stephen Hemminger , nd , nd Subject: RE: [PATCH 2/2] rcu: replace zero length array with flex array Thread-Topic: [PATCH 2/2] rcu: replace zero length array with flex array Thread-Index: AQHaTxMs2/egneQwVUmyIUXbwRgNhLDpkveg Date: Wed, 24 Jan 2024 22:57:06 +0000 Message-ID: References: <1706134657-17446-1-git-send-email-roretzla@linux.microsoft.com> <1706134657-17446-3-git-send-email-roretzla@linux.microsoft.com> In-Reply-To: <1706134657-17446-3-git-send-email-roretzla@linux.microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: 00281C871E719242B367CE7E0A72F66A.0 x-checkrecipientchecked: true authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DBAPR08MB5814:EE_|DU0PR08MB8397:EE_ x-ms-office365-filtering-correlation-id: 920d8bc8-f533-4c5e-4a75-08dc1d2fc9a7 nodisclaimer: true x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: S8j+jP5DJFT0vRGu/VnHgm9rO/JUVajDUAcIIDO6lJj0TmbibXRrZVwEX5goHrHkYD0szfSGSssigxmNl5b68ZmlHOdEh8qbfqNz09afeNaIk0dS4TgW7zv2o+0RZP2intQDJ9Xy9fRCK4PXfy715UjTwSgJRSDEjDlMtvI6ScigNrxnJG3TXVuRDb2L2FZw1fJkcBFqWPPeCAug/c1AGxU7s3L0qttO26UR6imsRxa2bIdYJQl2OOwAaQ8O74KZmg2OdYaYnhZ+g0fpRAn/aikI1/fAxZkULmopFJTaP4PO/T924OwMWsJrdGKJFylesMqxQ46ELcjLAVgnzT7KDCvjSU/mjNAoumj53oCefAL5wvc9daef0M5rjreetQhjvjCd1yli4HVmnUUSjbmuILSzSikMdAVdVQ8XCdLH04lwM5WSRX62nClnaK361xE0+fSldt6oeNao5QRO7OzRtIPbzr8BVvdPCyDUalCLwk+UmLA6e4nXC9HQscb7x5ZkP7JdHd4RCfH2+cF8vh+9W+Fq/JOzUw+2IEkV6EG4hHQVc1/UUmehH+SbfQVIUTLYCfNkeiXiHADbsb/XkdePISHqlBpL0JF0tnJMxSBm2jkaT66woqr3EW0ic2LEKrhP x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DBAPR08MB5814.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(366004)(396003)(136003)(346002)(39860400002)(376002)(230922051799003)(64100799003)(1800799012)(186009)(451199024)(7696005)(6506007)(54906003)(9686003)(53546011)(76116006)(64756008)(316002)(66946007)(55016003)(110136005)(38100700002)(8676002)(4326008)(478600001)(52536014)(8936002)(2906002)(5660300002)(71200400001)(66556008)(66476007)(66446008)(122000001)(83380400001)(38070700009)(41300700001)(86362001)(33656002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?ltrrnReRuBhAeGZ6+ktYEzwMH9rjb7444vQf1D/ua1gQSJXol7t6lphY0lns?= =?us-ascii?Q?SOS9HQc371IVrvlztLyEkECuWeEDoyaCq/gDcXhljbwcyO2svF0g3B8KmYfF?= =?us-ascii?Q?DJHtQSmg4tmfwdoCFdO/ltRvLl04Zp4FnpopH94wh9cmIHLm4z9EdxbtsvRP?= =?us-ascii?Q?XeEPUC90pnfShQobpVilNcAkipzgVBai8vU+uWJD+Hx4KCXqJ+hbF1aqQ6sx?= =?us-ascii?Q?eP6YqNx+AVz28JSTW3paA5fOh38CZvSKYfVBrsmzHV8mUPKvyLWzGHGD5mfU?= =?us-ascii?Q?cDbzoqDSnX7QaeRrY/Vrx60hyX0rVSXqzFv1u0idwnqDtGJWEZPFD2hsDqhT?= =?us-ascii?Q?2Bo02K0l6Jl45Zwoku5ioyLuzeyRUkxdKsi/wnkjyk2joZ1SzIQ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OgEVvIcXQ9jTrRkNGtx9fiDQjp9ix40+kyTJdgFloNEcHq?= =?us-ascii?Q?m2dDsFjv1w13wURx0CZRJioOt+UyKcJ+lPyUUHaoAzUh6z2jaSYBvdVqr23y?= =?us-ascii?Q?SGlu3Y5qawnpvAzyMRIcu0sZP9/q9I9gn9xkZQBqIGLu73WEkiNkkbSSeQFA?= =?us-ascii?Q?PuG40c0xLn149cJl3JWM1pwKSEUKx/usWYFJcZi6B9/sWm9i8rF2clOdAqE5?= =?us-ascii?Q?e7TtpEBBf52qdI9Sipx1zy3DtF7uJF503wlYhHDQnIW7a6e8JkA7B32zkF+V?= =?us-ascii?Q?XUkcDKRYNrZzQ0pebxtaLFvt0+hpApKPJJLZLmE6Z7GJ/fPfl5arivRHtFLk?= =?us-ascii?Q?MJ4k8GN6GjcUihdEbU+lswc99nfBI6gZf8gkUIBKZSlLgl8KPArMV3J4MUIi?= =?us-ascii?Q?CkZ0bg=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DBAPR08MB5814.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 920d8bc8-f533-4c5e-4a75-08dc1d2fc9a7 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jan 2024 22:57:06.3191 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: rWeTxj2WzyLSLukXJpToYxe7muKdqkWa9CH38lNJJj74FbEw2lFrVf2QQ0PvW2KGbMVbgeNFH+ysLGHP549sT01XJekBQqi37oyUoYHJSHg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB8397 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 > -----Original Message----- > From: Tyler Retzlaff > Sent: Wednesday, January 24, 2024 4:18 PM > To: dev@dpdk.org > Cc: Bruce Richardson ; Honnappa Nagarahalli > ; Sameh Gobriel > ; Vladimir Medvedkin > ; Yipeng Wang ; > Stephen Hemminger ; Tyler Retzlaff > > Subject: [PATCH 2/2] rcu: replace zero length array with flex array >=20 > Zero length arrays are GNU extension. Replace with standard flex array. >=20 > Signed-off-by: Tyler Retzlaff Reviewed-by: Honnappa Nagarahalli > --- > lib/rcu/rcu_qsbr_pvt.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/lib/rcu/rcu_qsbr_pvt.h b/lib/rcu/rcu_qsbr_pvt.h index > 5fd7ca2..96d05e6 100644 > --- a/lib/rcu/rcu_qsbr_pvt.h > +++ b/lib/rcu/rcu_qsbr_pvt.h > @@ -52,7 +52,7 @@ struct rte_rcu_qsbr_dq { > */ > typedef struct { > uint64_t token; /**< Token */ > - uint8_t elem[0]; /**< Pointer to user element */ > + uint8_t elem[]; /**< Pointer to user element */ > } __attribute__((__may_alias__)) __rte_rcu_qsbr_dq_elem_t; >=20 > #endif /* _RTE_RCU_QSBR_PVT_H_ */ > -- > 1.8.3.1