drm/i915: Avoid compiler warning for maybe unused gu_misc_iir
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 26 Sep 2018 10:47:18 +0000 (11:47 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 26 Sep 2018 12:33:14 +0000 (13:33 +0100)
commit7a90938332d80faf973fbcffdf6e674e7b8f0914
treeac9511bf1f57450480287171711173d2e5bebc15
parent74f6e183913b5dc90a004cafa84159ddb61cd0f0
drm/i915: Avoid compiler warning for maybe unused gu_misc_iir

/kisskb/src/drivers/gpu/drm/i915/i915_irq.c: warning: 'gu_misc_iir' may be used uninitialized in this function [-Wuninitialized]:  => 3120:10

Silence the compiler warning by ensuring that the local variable is
initialised and removing the guard that is confusing the older gcc.

Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Fixes: df0d28c185ad ("drm/i915/icl: GSE interrupt moves from DE_MISC to GU_MISC")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180926104718.17462-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_irq.c