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>
Thu, 2 Oct 2014 15:18:04 +0000 (17:18 +0200)
commit411b0c990125d54d48314d8ecd6e800bc9660509
tree8b4787701493650de87f99fea53ad2f34e9c639d
parent14cffe44b8aad9a839fcbcf35f9d2bbd90f572c0
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>
(cherry picked from commit 6833d83891140aedab7841589b7c7dbd7b600235)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm/kvm/reset.c