]> git.karo-electronics.de Git - linux-beck.git/commit
drm/i915: workaround sparse warning on variable length arrays
authorJani Nikula <jani.nikula@intel.com>
Tue, 4 Oct 2016 09:54:12 +0000 (12:54 +0300)
committerJani Nikula <jani.nikula@intel.com>
Tue, 4 Oct 2016 10:07:50 +0000 (13:07 +0300)
commitff64aa1e630087381511c4d25de0657824f40efa
treee2c89972db8123e16b8d74072200f0bd92d99b16
parentd9c409d67131e62f357b43cf03af4c0caab45721
drm/i915: workaround sparse warning on variable length arrays

Fix sparse warning:

drivers/gpu/drm/i915/intel_device_info.c:195:31: warning: Variable
length array is used.

In truth the array does have constant length, but sparse is too dumb to
realize. This is a bit ugly, but silence the warning no matter what.

Fixes: 91bedd34abf0 ("drm/i915/bdw: Check for slice, subslice and EU count for BDW")
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1475574853-4178-1-git-send-email-jani.nikula@intel.com
drivers/gpu/drm/i915/intel_device_info.c