Re: [PATCH] rtc: remove VLA usage

2018-03-07 Thread Gustavo A. R. Silva
On 03/07/2018 05:12 PM, Alexandre Belloni wrote: On 07/03/2018 at 17:09:22 -0600, Gustavo A. R. Silva wrote: On 03/07/2018 05:01 PM, Alexandre Belloni wrote: On 07/03/2018 at 16:39:51 -0600, Gustavo A. R. Silva wrote: Hi Alexandre, On 03/07/2018 03:25 PM, Alexandre Belloni wrote: On 07/03

Re: [PATCH] rtc: remove VLA usage

2018-03-07 Thread Alexandre Belloni
On 07/03/2018 at 17:09:22 -0600, Gustavo A. R. Silva wrote: > > > On 03/07/2018 05:01 PM, Alexandre Belloni wrote: > > On 07/03/2018 at 16:39:51 -0600, Gustavo A. R. Silva wrote: > > > Hi Alexandre, > > > > > > On 03/07/2018 03:25 PM, Alexandre Belloni wrote: > > > > On 07/03/2018 at 14:11:33 -0

Re: [PATCH] rtc: remove VLA usage

2018-03-07 Thread Gustavo A. R. Silva
On 03/07/2018 05:01 PM, Alexandre Belloni wrote: On 07/03/2018 at 16:39:51 -0600, Gustavo A. R. Silva wrote: Hi Alexandre, On 03/07/2018 03:25 PM, Alexandre Belloni wrote: On 07/03/2018 at 14:11:33 -0600, Gustavo A. R. Silva wrote: In preparation to enabling -Wvla, remove VLA and replace it

Re: [PATCH] rtc: remove VLA usage

2018-03-07 Thread Alexandre Belloni
On 07/03/2018 at 16:39:51 -0600, Gustavo A. R. Silva wrote: > Hi Alexandre, > > On 03/07/2018 03:25 PM, Alexandre Belloni wrote: > > On 07/03/2018 at 14:11:33 -0600, Gustavo A. R. Silva wrote: > > > In preparation to enabling -Wvla, remove VLA and replace it > > > with a fixed-length array instead

Re: [PATCH] rtc: remove VLA usage

2018-03-07 Thread Gustavo A. R. Silva
Hi Alexandre, On 03/07/2018 03:25 PM, Alexandre Belloni wrote: On 07/03/2018 at 14:11:33 -0600, Gustavo A. R. Silva wrote: In preparation to enabling -Wvla, remove VLA and replace it with a fixed-length array instead. You should probably explain what VLA is and why this is important to do.

Re: [PATCH] rtc: remove VLA usage

2018-03-07 Thread Gustavo A. R. Silva
Hi Alexandre, On 03/07/2018 03:25 PM, Alexandre Belloni wrote: On 07/03/2018 at 14:11:33 -0600, Gustavo A. R. Silva wrote: In preparation to enabling -Wvla, remove VLA and replace it with a fixed-length array instead. You should probably explain what VLA is and why this is important to do.

Re: [PATCH] rtc: remove VLA usage

2018-03-07 Thread Alexandre Belloni
On 07/03/2018 at 14:11:33 -0600, Gustavo A. R. Silva wrote: > In preparation to enabling -Wvla, remove VLA and replace it > with a fixed-length array instead. > You should probably explain what VLA is and why this is important to do. > Signed-off-by: Gustavo A. R. Silva > --- > drivers/rtc/rtc

[PATCH] rtc: remove VLA usage

2018-03-07 Thread Gustavo A. R. Silva
In preparation to enabling -Wvla, remove VLA and replace it with a fixed-length array instead. Signed-off-by: Gustavo A. R. Silva --- drivers/rtc/rtc-bq32k.c | 2 +- drivers/rtc/rtc-mcp795.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/rtc/rtc-bq32k.c b/drivers