Re: [Intel-gfx] [PATCH 2/2] drm/i915: Warn against variable length arrays

2018-03-13 Thread Jani Nikula
On Tue, 13 Mar 2018, Chris Wilson wrote: > VLA are strongly discouraged in the kernel due to ambiguity they impose > on the limited stack space and security concerns over manipulating the > stack frame. Add -Wvla to our compiler flags so that CI rejects them. > > Signed-off-by: Chris Wilson > Cc:

[Intel-gfx] [PATCH 2/2] drm/i915: Warn against variable length arrays

2018-03-12 Thread Chris Wilson
VLA are strongly discouraged in the kernel due to ambiguity they impose on the limited stack space and security concerns over manipulating the stack frame. Add -Wvla to our compiler flags so that CI rejects them. Signed-off-by: Chris Wilson Cc: Jani Nikula Cc: Joonas Lahtinen --- drivers/gpu/d