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 C530941B61; Sat, 14 Jan 2023 01:19:24 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6B49740E0F; Sat, 14 Jan 2023 01:19:24 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 6730140A87 for ; Sat, 14 Jan 2023 01:19:22 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id 82AF520DFE1E; Fri, 13 Jan 2023 16:19:21 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 82AF520DFE1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1673655561; bh=rxYjf4UPnTyJXX54VhTt2uiDVUlsLLDeQAL26ti2kvM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=aV4C5HTPS0nrTD7A7CF5DyaACA+vSOZWM3ab2LS7r0XXgubGi0bmdjxw1Xt6r4kLR iQjvh3Uk5ul2VQ+nmXGyVRjYERKjyTWD1lbVGLS+fjObcv3RL19Tyf/cHOw5le71jp PPrjv9OGnN12OKK0xaZOE2zqNKg5YSZqyapVEswA= Date: Fri, 13 Jan 2023 16:19:21 -0800 From: Tyler Retzlaff To: Stephen Hemminger Cc: dev@dpdk.org, Yipeng Wang , Sameh Gobriel Subject: Re: [PATCH 1/7] member: replace zero length array with flex array Message-ID: <20230114001921.GB24758@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> References: <20230113215205.125767-1-stephen@networkplumber.org> <20230113215205.125767-2-stephen@networkplumber.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230113215205.125767-2-stephen@networkplumber.org> User-Agent: Mutt/1.5.21 (2010-09-15) 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 Fri, Jan 13, 2023 at 01:51:59PM -0800, Stephen Hemminger wrote: > Zero length arrays are GNU extension. Replace with > standard flex array. > > Signed-off-by: Stephen Hemminger > --- > lib/member/rte_member_heap.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lib/member/rte_member_heap.h b/lib/member/rte_member_heap.h > index 9c4a01aebe95..ab6319bc2de4 100644 > --- a/lib/member/rte_member_heap.h > +++ b/lib/member/rte_member_heap.h > @@ -26,7 +26,7 @@ struct hash { > uint16_t bkt_cnt; > uint16_t num_item; > uint32_t seed; > - struct hash_bkt buckets[0]; > + struct hash_bkt buckets[]; > }; > > struct node { > -- i suppose arguably this series depends on the series Bruce is putting up defaulting the minimum C standard to C99 since technically that's the minimum needed for the flexible array members. Series-acked-by: Tyler Retzlaff