]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Work around GCC anonymous union initialization bug
authorImre Deak <imre.deak@intel.com>
Mon, 14 Aug 2017 15:15:29 +0000 (18:15 +0300)
committerImre Deak <imre.deak@intel.com>
Tue, 15 Aug 2017 11:31:52 +0000 (14:31 +0300)
commitd4537569cb14acc4d3d004a5dc214538ecb03da5
tree904295c702b6f7c8b8c6bb44671b4bcdfb128914
parent9a0ef0c0159f076d635e5a3d89b9e9b2f14568e3
drm/i915: Work around GCC anonymous union initialization bug

GCC 4.4 can't cope with anonymous union initializers which seems to be a
bug in that version (see the Reference) and is fixed since GCC version
4.6. A workaround which is also used elsewhere in the kernel for the
same purpose is to wrap the initialization in curly braces, so do the
same here.

Fixes: b6e561d079fd ("drm/i915/bxt, glk: Give a proper name to the power well struct phy field")
Reference: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10676
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20170814151530.24154-1-imre.deak@intel.com
drivers/gpu/drm/i915/intel_runtime_pm.c