Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6833d838 authored by Christoffer Dall's avatar Christoffer Dall
Browse files

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: default avatarMarc Zyngier <marc.zyngier@arm.com>
Reported-by: default avatarRussell King <linux@arm.linux.org.uk>
Tested-by: default avatarRussell King <linux@arm.linux.org.uk>
Signed-off-by: default avatarChristoffer Dall <christoffer.dall@linaro.org>
parent 6e72cc57
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,
};