[Intel-gfx] [PATCH 1/2] drm/i915: Work around GCC anonymous union initialization bug

Chris Wilson chris at chris-wilson.co.uk
Tue Aug 15 10:45:05 UTC 2017


Quoting Imre Deak (2017-08-14 16:15:29)
> 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: b5565a2efc12 ("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 at intel.com>
> Cc: Arkadiusz Hiler <arkadiusz.hiler at intel.com>
> Signed-off-by: Imre Deak <imre.deak at intel.com>

Still waiting for when gcc-4.4 is dropped,
Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
-Chris


More information about the Intel-gfx mailing list