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

2020-05-13 Thread Greg Kroah-Hartman
On Wed, May 13, 2020 at 05:48:07PM +0200, Johan Hovold wrote: > On Wed, May 13, 2020 at 05:39:18PM +0200, Greg Kroah-Hartman wrote: > > On Wed, May 13, 2020 at 05:03:43PM +0200, Johan Hovold wrote: > > > On Thu, May 07, 2020 at 01:53:18PM -0500, Gustavo A. R. Silva wrote: > > > > The current

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

2020-05-13 Thread Johan Hovold
On Wed, May 13, 2020 at 05:39:18PM +0200, Greg Kroah-Hartman wrote: > On Wed, May 13, 2020 at 05:03:43PM +0200, Johan Hovold wrote: > > On Thu, May 07, 2020 at 01:53:18PM -0500, Gustavo A. R. Silva wrote: > > > The current codebase makes use of the zero-length array language > > > extension to the

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

2020-05-13 Thread Greg Kroah-Hartman
On Wed, May 13, 2020 at 05:03:43PM +0200, Johan Hovold wrote: > On Thu, May 07, 2020 at 01:53:18PM -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

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

2020-05-13 Thread Johan Hovold
On Thu, May 07, 2020 at 01:53:18PM -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] staging: greybus: 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