Re: [PATCH v2] EDAC, sb_edac: Remove VLA usage

2018-03-13 Thread Gustavo A. R. Silva
On 03/13/2018 08:21 AM, Mauro Carvalho Chehab wrote: Em Tue, 13 Mar 2018 06:20:34 -0500 "Gustavo A. R. Silva" escreveu: In preparation to enabling -Wvla, remove VLA and replace it with a fixed-length array instead. Fixed as part of the directive to remove all VLAs from the kernel: https://l

Re: [PATCH v2] EDAC, sb_edac: Remove VLA usage

2018-03-13 Thread Mauro Carvalho Chehab
Em Tue, 13 Mar 2018 06:20:34 -0500 "Gustavo A. R. Silva" escreveu: > In preparation to enabling -Wvla, remove VLA and replace it > with a fixed-length array instead. > > Fixed as part of the directive to remove all VLAs from > the kernel: https://lkml.org/lkml/2018/3/7/621 > > Signed-off-by: Gu

[PATCH v2] EDAC, sb_edac: Remove VLA usage

2018-03-13 Thread Gustavo A. R. Silva
In preparation to enabling -Wvla, remove VLA and replace it with a fixed-length array instead. Fixed as part of the directive to remove all VLAs from the kernel: https://lkml.org/lkml/2018/3/7/621 Signed-off-by: Gustavo A. R. Silva --- Changes in v2: - Use macro max_t to compute the max of all