Re: [PATCHv6] gpio: Remove VLA from gpiolib

2018-05-17 Thread Geert Uytterhoeven
Hi Laura, On Thu, May 17, 2018 at 2:00 AM, Laura Abbott wrote: > The new challenge is to remove VLAs from the kernel > (see https://lkml.org/lkml/2018/3/7/621) to eventually > turn on -Wvla. > > Using a kmalloc array is the easy way to fix this but kmalloc is still > more

Re: [PATCHv6] gpio: Remove VLA from gpiolib

2018-05-17 Thread Geert Uytterhoeven
Hi Laura, On Thu, May 17, 2018 at 2:00 AM, Laura Abbott wrote: > The new challenge is to remove VLAs from the kernel > (see https://lkml.org/lkml/2018/3/7/621) to eventually > turn on -Wvla. > > Using a kmalloc array is the easy way to fix this but kmalloc is still > more expensive than stack

Re: [PATCHv6] gpio: Remove VLA from gpiolib

2018-05-16 Thread Phil Reid
On 17/05/2018 08:00, Laura Abbott wrote: The new challenge is to remove VLAs from the kernel (see https://lkml.org/lkml/2018/3/7/621) to eventually turn on -Wvla. Using a kmalloc array is the easy way to fix this but kmalloc is still more expensive than stack allocation. Introduce a fast path

Re: [PATCHv6] gpio: Remove VLA from gpiolib

2018-05-16 Thread Phil Reid
On 17/05/2018 08:00, Laura Abbott wrote: The new challenge is to remove VLAs from the kernel (see https://lkml.org/lkml/2018/3/7/621) to eventually turn on -Wvla. Using a kmalloc array is the easy way to fix this but kmalloc is still more expensive than stack allocation. Introduce a fast path