Re: [PATCH] cxgb3: remove VLA

2018-03-07 Thread Gustavo A. R. Silva
On 03/07/2018 11:25 AM, David Miller wrote: From: "Gustavo A. R. Silva" Date: Mon, 5 Mar 2018 23:39:34 -0600 In preparation to enabling -Wvla, remove VLA and replace it with dynamic memory allocation. Signed-off-by: Gustavo A. R. Silva All of these lengths are limited by the encoding of

Re: [PATCH] cxgb3: remove VLA

2018-03-07 Thread David Miller
From: "Gustavo A. R. Silva" Date: Mon, 5 Mar 2018 23:39:34 -0600 > In preparation to enabling -Wvla, remove VLA and replace it > with dynamic memory allocation. > > Signed-off-by: Gustavo A. R. Silva All of these lengths are limited by the encoding of the field in the VPD, which is a u8, and t

[PATCH] cxgb3: remove VLA

2018-03-05 Thread Gustavo A. R. Silva
In preparation to enabling -Wvla, remove VLA and replace it with dynamic memory allocation. Signed-off-by: Gustavo A. R. Silva --- drivers/net/ethernet/chelsio/cxgb3/t3_hw.c | 25 + 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/chelsi