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

2020-05-12 Thread Gustavo A. R. Silva
On Fri, May 08, 2020 at 03:02:49PM +0200, Thomas Bogendoerfer wrote: > > > > Signed-off-by: Gustavo A. R. Silva > > --- > > arch/mips/kernel/signal.c |2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > applied to mips-next. > Thanks, Thomas. -- Gustavo

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

2020-05-08 Thread Thomas Bogendoerfer
On Thu, May 07, 2020 at 02:00:52PM -0500, 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 is a flexible array member[1][2], > introduced

[PATCH] MIPS: 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