drm/i915: Fix some gcc warnings
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 21 Aug 2015 17:45:27 +0000 (20:45 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 26 Aug 2015 09:19:22 +0000 (11:19 +0200)
commit0a0b457fbf765d0b98fa48495b9bb7901eb8b091
tree8484fd1d3fb0fd51a846b42b7be0b5399f875b04
parente464bfdeda3da3b0ef29ca84960715993ccbb1fc
drm/i915: Fix some gcc warnings

Simple one:
drivers/gpu/drm/i915/i915_debugfs.c:2449:57: warning: Using plain integer as NULL pointer

And something a bit more peculiar:
drivers/gpu/drm/i915/i915_debugfs.c:4953:18: warning: Variable length array is used.
drivers/gpu/drm/i915/i915_debugfs.c:4953:32: warning: Variable length array is used.

We pass a 'const int' as the array size which results in the warning,
dropping the const gets rid of the warning. Weird, but I think getting
rid of the warnings is better than holding on to the const.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_debugfs.c