OSDN Git Service

drm/i915: Warn against variable length arrays
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 13 Mar 2018 00:40:55 +0000 (00:40 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 13 Mar 2018 09:43:50 +0000 (09:43 +0000)
commitc5c2b11894f4f862cf243b955ac59bb1a5fe61b9
treeb4fb3c39ae66b60d22950dd0055f73b5d1c79de7
parent7aa0b14ede643fb7c33aaa8e0041de04a0d6f278
drm/i915: Warn against variable length arrays

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 <chris@chris-wilson.co.uk>
Cc: Jani Nikula <jani.nikula@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180313004055.25411-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/Makefile