RE: [PATCH] fpga: dfl: Replace zero-length array with flexible-array

2020-05-08 Thread Wu, Hao
vger.kernel.org; linux- > ker...@vger.kernel.org > Subject: Re: [PATCH] fpga: dfl: Replace zero-length array with flexible-array > > > > This looks like a a good change to me. > > Tested-by: Matthew Gerlach > > On Thu, 7 May 2020, Gustavo A. R. Silva wrote: >

Re: [PATCH] fpga: dfl: Replace zero-length array with flexible-array

2020-05-08 Thread matthew . gerlach
This looks like a a good change to me. Tested-by: Matthew Gerlach On Thu, 7 May 2020, Gustavo A. R. Silva wrote: The current codebase makes use of the zero-length array language extension to the C90 standard, but the preferred mechanism to declare variable-length types such as these ones

[PATCH] fpga: dfl: Replace zero-length array with flexible-array

2020-05-07 Thread Gustavo A. R. Silva
The current codebase makes use of the zero-length array language extension to the C90 standard, but the preferred mechanism to declare variable-length types such as these ones is a flexible array member[1][2], introduced in C99: struct foo { int stuff; struct boo array[]; }; By