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

2020-05-11 Thread Martin K. Petersen
On Thu, 7 May 2020 14:21:47 -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 in

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

2020-05-11 Thread Jason Yan
在 2020/5/8 3:21, 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 {

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

2020-05-11 Thread John Garry
On 07/05/2020 20:21, 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 in C99: struct foo {

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