diff options
author | Christoffer Dall <christoffer.dall@linaro.org> | 2013-08-20 01:16:57 +0400 |
---|---|---|
committer | Christoffer Dall <christoffer.dall@linaro.org> | 2013-08-31 02:47:58 +0400 |
commit | 6833d83891140aedab7841589b7c7dbd7b600235 (patch) | |
tree | 11cea61fdaa4b15fb9fbb15461525d954acfdc1d /arch/arm/kvm/reset.c | |
parent | 6e72cc5700fe6b8776d537b736dab64b21ae0f1f (diff) | |
download | linux-6833d83891140aedab7841589b7c7dbd7b600235.tar.xz |
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.c | 2 |
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, }; |