ARM: KVM: Work around older compiler bug
authorChristoffer Dall <christoffer.dall@linaro.org>
Mon, 19 Aug 2013 21:16:57 +0000 (14:16 -0700)
committerChristoffer Dall <christoffer.dall@linaro.org>
Fri, 30 Aug 2013 22:47:58 +0000 (15:47 -0700)
commit6833d83891140aedab7841589b7c7dbd7b600235
tree11cea61fdaa4b15fb9fbb15461525d954acfdc1d
parent6e72cc5700fe6b8776d537b736dab64b21ae0f1f
ARM: KVM: Work around older compiler bug

Compilers before 4.6 do not behave well with unnamed fields in structure
initializers and therefore produces build errors:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10676

By refering to the unnamed union using braces, both older and newer
compilers produce the same result.

Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Reported-by: Russell King <linux@arm.linux.org.uk>
Tested-by: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm/kvm/reset.c