summaryrefslogtreecommitdiffstats
path: root/arch/arm/kvm/reset.c
diff options
context:
space:
mode:
authorChristoffer Dall <christoffer.dall@linaro.org>2013-08-19 14:16:57 -0700
committerChristoffer Dall <christoffer.dall@linaro.org>2013-08-30 15:47:58 -0700
commit6833d83891140aedab7841589b7c7dbd7b600235 (patch)
tree11cea61fdaa4b15fb9fbb15461525d954acfdc1d /arch/arm/kvm/reset.c
parent6e72cc5700fe6b8776d537b736dab64b21ae0f1f (diff)
downloadblackbird-op-linux-6833d83891140aedab7841589b7c7dbd7b600235.tar.gz
blackbird-op-linux-6833d83891140aedab7841589b7c7dbd7b600235.zip
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>
Diffstat (limited to 'arch/arm/kvm/reset.c')
-rw-r--r--arch/arm/kvm/reset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/kvm/reset.c b/arch/arm/kvm/reset.c
index b7840e7aa452..71e08baee209 100644
--- a/arch/arm/kvm/reset.c
+++ b/arch/arm/kvm/reset.c
@@ -40,7 +40,7 @@ static struct kvm_regs a15_regs_reset = {
};
static const struct kvm_irq_level a15_vtimer_irq = {
- .irq = 27,
+ { .irq = 27 },
.level = 1,
};
OpenPOWER on IntegriCloud