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

2020-05-13 Thread Vinod Koul
On 07-05-20, 14:00, 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

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

2020-05-10 Thread Ludovic Desroches
On Thu, May 07, 2020 at 02:00:38PM -0500, Gustavo A. R. Silva wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > The current codebase makes use of the zero-length array language > extension to the C90 standard, but the preferred mechanism to

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