Acked-by: Chaoyong He <chaoyong...@corigine.com> > Zero length arrays are GNU extension. Replace with standard flex array. > > Signed-off-by: Stephen Hemminger <step...@networkplumber.org> > Acked-by: Niklas Söderlund <niklas.soderl...@corigine.com> > Reviewed-by: Tyler Retzlaff <roret...@linux.microsoft.com> > --- > 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 c2938fb6f63c..f00d2e838d8f 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.42.0
- [PATCH v4 00/10] Replace zero length arrays Stephen Hemminger
- [PATCH v4 01/10] member: replace zero length array ... Stephen Hemminger
- [PATCH v4 02/10] cryptodev: replace zero length arr... Stephen Hemminger
- RE: [EXT] [PATCH v4 02/10] cryptodev: replace z... Anoob Joseph
- [PATCH v4 03/10] security: replace zero length arra... Stephen Hemminger
- RE: [EXT] [PATCH v4 03/10] security: replace ze... Anoob Joseph
- [PATCH v4 04/10] pipeline: replace zero length arra... Stephen Hemminger
- [PATCH v4 05/10] net/nfp: replace zero length array... Stephen Hemminger
- RE: [PATCH v4 05/10] net/nfp: replace zero leng... Chaoyong He
- [PATCH v4 06/10] net/enic: replace zero length arra... Stephen Hemminger
- [PATCH v4 07/10] net/mlx5: replace zero length arra... Stephen Hemminger
- RE: [PATCH v4 07/10] net/mlx5: replace zero len... Dariusz Sosnowski
- [PATCH v4 08/10] pdcp: replace zero length array wi... Stephen Hemminger
- [PATCH v4 09/10] net/cpfl: replace zero length arra... Stephen Hemminger
- [PATCH v4 10/10] common/dpaxx: remove zero length a... Stephen Hemminger
- RE: [PATCH v4 10/10] common/dpaxx: remove zero ... Hemant Agrawal
- Re: [PATCH v4 10/10] common/dpaxx: remove z... Stephen Hemminger
- Re: [PATCH v4 10/10] common/dpaxx: remo... Stephen Hemminger
- Re: [PATCH v4 10/10] common/dpaxx: remo... Tyler Retzlaff