]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Silence compiler warning for hsw_power_well_enable()
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 2 Oct 2017 10:04:16 +0000 (11:04 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 6 Oct 2017 17:04:06 +0000 (18:04 +0100)
commitd5a2b8e019aebb94d85bc2085e486652401d6e28
tree8eb697875c11c60ff4c8757ad171efa77c619b40
parenta66038659d3abc5ac128d2e812e5712f6514a64e
drm/i915: Silence compiler warning for hsw_power_well_enable()

Not all compilers are able to determine that pg is guarded by wait_fuses
and so may think that pg is used uninitialized.

Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Fixes: bf5f04bb2e8e ("drm/i915/hsw+: Add has_fuses power well attribute")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Imre Deak <imre.deak@intel.com>
Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171002100416.25865-1-chris@chris-wilson.co.uk
Reviewed-by: Imre Deak <imre.deak@intel.com>
drivers/gpu/drm/i915/intel_runtime_pm.c