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 0687D423E4; Sun, 15 Jan 2023 16:22:26 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AFC1B40156; Sun, 15 Jan 2023 16:22:25 +0100 (CET) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2120.outbound.protection.outlook.com [40.107.243.120]) by mails.dpdk.org (Postfix) with ESMTP id 11ADB40042 for ; Sun, 15 Jan 2023 16:22:24 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XfUlO1h5zGy2MChaXmJa4F/+7DswAA4J2hbctXx20DskxLosHvu7hQsEaiTlIl6Y2wkraPijgV4smR4Z3TCzZR6VeG31jYJSO5/Vu2X48Oib83/qlc8JHWxfYEVrcjIsKT5oYuo06Nq1yU0Rd9K0GleZszllNqk6wRYSPGJHkRM3DARIcVWOw0LWJuFSmL97zs5QlwtFgB4/7rCF8wLwzw3xrT/JKU4haluxIg/+IB179xpX+mwV1j6bfCXBbo5ScFC/hvuOXB8hpfh+7mSe874AHQgUZtNcsVjoJLDcYUOSpFF5ZjYrfXe/rCp7KUMR49YqKIOhjGIuwJQhrjGe9w== 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=chxaP880cu0AaMgT+08F1BwlWNcXWUN+y37c5pymBxk=; b=LjQFQHOk3ESh8uJ31hSNynihhHD443dAIZu08GQZpFg5uTyFLPvfEaarZHqr52y/KuypOz+CP9yjnCmjyjaZXS4yX7ClrmGZhcs722igI0Gt/y3E9O/sgc1maBQ1uzdwJHYLIAs4ElAAVlsKyx4lN50EvAzSSgMqDxk0cj7JRJW0/8WMhXN7p5OcUD6kpqeT8GJVR43rON05ebyqzH/dQWS2AI2s1yZQFlF4dbKqYs1+KVW0zmSOvGFvA5e7uXU0SkPhZ65hus8+MV5asAqg8QTzveDm5ZpEG3eahOjTy8kGUOBhjLPat8j8k1X594XWDJVrtaJLAyB9+HN7sr/KTw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com; dkim=pass header.d=corigine.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=chxaP880cu0AaMgT+08F1BwlWNcXWUN+y37c5pymBxk=; b=TL9e45qsgGrp+/FsOc5B2Z+owcuvHFaaKbYIFED8eZaEq3tvGnmbAUaADKZMzpWCMX632MJQK+HmjNEV6WWHCuHI1d9kohqP4yuHDFbwsquYl0rw54pnHbCLB+5jNoiHRD5rIzjrC8CuU2us7EYT4bTcaAi0+iGeRPBZqQ9zTCw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; Received: from SJ0PR13MB6037.namprd13.prod.outlook.com (2603:10b6:a03:3e2::9) by PH0PR13MB5698.namprd13.prod.outlook.com (2603:10b6:510:115::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.23; Sun, 15 Jan 2023 15:22:20 +0000 Received: from SJ0PR13MB6037.namprd13.prod.outlook.com ([fe80::a17f:495a:6870:18c0]) by SJ0PR13MB6037.namprd13.prod.outlook.com ([fe80::a17f:495a:6870:18c0%9]) with mapi id 15.20.5986.019; Sun, 15 Jan 2023 15:22:20 +0000 Date: Sun, 15 Jan 2023 16:22:05 +0100 From: Niklas =?iso-8859-1?Q?S=F6derlund?= To: Stephen Hemminger Cc: dev@dpdk.org, Chaoyong He Subject: Re: [PATCH 5/7] nfp: replace zero length array with flex array Message-ID: References: <20230113215205.125767-1-stephen@networkplumber.org> <20230113215205.125767-6-stephen@networkplumber.org> Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230113215205.125767-6-stephen@networkplumber.org> X-ClientProxiedBy: GV3P280CA0116.SWEP280.PROD.OUTLOOK.COM (2603:10a6:150:8::15) To SJ0PR13MB6037.namprd13.prod.outlook.com (2603:10b6:a03:3e2::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB6037:EE_|PH0PR13MB5698:EE_ X-MS-Office365-Filtering-Correlation-Id: 08f8df86-5127-4d6a-8f91-08daf70c4b10 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Q0IeHkTBt9ySk9yxg4I5xnr1/arziOF1o4lpxxAOeYc/CtxF4mDPKJZ3lfLuQUMMrXAfQlE4wQ9AR1rLjkFBDquZ8Qt++bjqKWWzxDIxy0o4Ky6gcrYQ9dodxfPCBlydye02qbY6PdkvmFhSh1DN8L5vzGPEBt/Ni9GxznKoa/nEa3XbqEm7by5UfTEaDUGWO16n8lqzGDoQY8FyaCdYK1v+UYigEcRa5TstIPVrGY0L8BtpZH1ySaf4EgvBFTidCtRvA34T4Vvlb0YOrNPbW+Qq7kJ4rSc9XlfLTJnYDFJR0mvWNmpPpO6J6eT76oQhsmAN+vqHupWDeWYlgRq/jVYT3egUwXVKwDpNtxCHG7oYlU1lxKWumob1YaSW84ooRQGNEuB8BypNix4CGC4/1WUeez2ZCUTxNVfPIJjGKum0tAds5HJtQFjmoX64+65cOjL+OkGtKEauq3DE83sQ/j1oGDgDYQQrk6RTpYc0+Ah7IgUxhqlFhm7sLrnbcfAI6GBtdqMbbt8Fk+Yp4YM+sqF1bUzmOTnpp04EagNAMPSkS0yyWobsoBSZCUvTwk4FcZez2MqPnCM/62XMNq91czcLG2ZuKxNiksNK1NbLvSi4iydoMga9HEkj6YwMtw7Dfhf2cLcylTW4CI1nMbBTe8iX+Occ7Jpj4POlmtApVktL9yZIJ000vtNa1lTyh0T9+weeenfhN8SS2iiMkBjpGs8dyO+jjXBwwXXeMNs6yQI= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR13MB6037.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(136003)(39830400003)(396003)(366004)(376002)(346002)(451199015)(66476007)(66556008)(66946007)(41300700001)(66574015)(186003)(6512007)(53546011)(9686003)(8676002)(26005)(6916009)(4326008)(86362001)(83380400001)(5660300002)(38350700002)(8936002)(107886003)(6666004)(6506007)(478600001)(316002)(52116002)(38100700002)(2906002)(6486002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?iso-8859-1?Q?UWpt/aPk/+LM+yZsTmG9BAI6/wySJcbGRE9pL5p1S6UMu8opmquI/RuWdV?= =?iso-8859-1?Q?7irToGSNgILbQYg9HXcEDXupia0Y+WpFrwD4zSMP3/NJbL/k+YSqefMQYB?= =?iso-8859-1?Q?GQyxMfZoukLJDORWyIUrHgmDCjRzautkefFd5lXPZau+EARaZGTFIW5oLy?= =?iso-8859-1?Q?kYqCpm8F5s33y2rfQbfc5Uq71Lt/J6xqKxDKCr8IVxxIrrVjfOK5P1fjzN?= =?iso-8859-1?Q?9EXGV9A2s63QoDBR0mXUI1oDXMRAJIukUAIO/xm7cEsymy5/mfpMUzGx2H?= =?iso-8859-1?Q?DyqVybfIoQ0ZN23zuCVLjl0YHlsZNU5dHoTzJ59ddIlTajpRteWG+X7Sfy?= =?iso-8859-1?Q?zFHEo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eMJIYpkAEDJS?= =?iso-8859-1?Q?wX6A+aGWEN5i5AkToGxG41xB2ylE1/hxcCMGCfXRyYUK11244g6jENa9gV?= =?iso-8859-1?Q?7sInHoXarzusRz/9sdDHDoAJnj1cbgR0NflZxxuM8qPUp7yZYgmLZ9nJOT?= =?iso-8859-1?Q?FXwQ5pTSEMRfbD2rSiKMQ8C63WMT9CXtvVUoUBz3/32R2P0GM3dpIeZ343?= =?iso-8859-1?Q?zyhcMyjweMimk+9FEyJuocXzfsAKgIkeAm7owWzpkmXHkK9b9pTlmm/b3P?= =?iso-8859-1?Q?Adz0iWVWUySzZHt0igYcaoDrbIjmE7Hc3CZDD5YKMIztMoMQEEsOh774Pt?= =?iso-8859-1?Q?Wqg080mPGqKwKiZqZVe3tWbVw5Xm8oA8L9ez3Rpsr+1QKD/EXnhO44oQNc?= =?iso-8859-1?Q?bE5WOEtDcDcuZ+KKXgO0jiazzCdlTezhsdaYayTJOw3bgyxx4an8tGeg?= =?iso-8859-1?Q?=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 08f8df86-5127-4d6a-8f91-08daf70c4b10 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB6037.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jan 2023 15:22:19.8953 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fe128f2c-073b-4c20-818e-7246a585940c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: wdGMe1ZAAslp9wCFkfmycu/nEvw3pO1O0y5ioI2VoKczrhIk1Ma2PUZYEO9JOFLZf5m0TBvqx7DD1jS+lE0PbpR8D/Zjr2veHZTZU0+XDkM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR13MB5698 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 Hi Stephen, Thanks for your patch. On 2023-01-13 13:52:03 -0800, Stephen Hemminger wrote: > Zero length arrays are GNU extension. Replace with > standard flex array. > > Signed-off-by: Stephen Hemminger I understand this works might depend on another work to raise the minimum compiler versions to support this change. Provided this is sorted out as part of the full series to move to flex arrays, for the change itself. Acked-by: Niklas Söderlund > --- > drivers/net/nfp/flower/nfp_flower_cmsg.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/nfp/flower/nfp_flower_cmsg.h b/drivers/net/nfp/flower/nfp_flower_cmsg.h > index 04601cb0bd25..ee8b439d617f 100644 > --- a/drivers/net/nfp/flower/nfp_flower_cmsg.h > +++ b/drivers/net/nfp/flower/nfp_flower_cmsg.h > @@ -73,7 +73,7 @@ struct nfp_flower_cmsg_mac_repr { > uint8_t info; > uint8_t nbi_port; > uint8_t phys_port; > - } ports[0]; > + } ports[]; > }; > > /* > -- > 2.39.0 > -- Kind Regards, Niklas Söderlund