KVM: EVENTFD: Remove inclusion of irq.h
authorChristoffer Dall <christoffer.dall@linaro.org>
Mon, 22 Sep 2014 21:33:08 +0000 (23:33 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 24 Sep 2014 10:06:25 +0000 (12:06 +0200)
Commit c77dcac (KVM: Move more code under CONFIG_HAVE_KVM_IRQFD) added
functionality that depends on definitions in ioapic.h when
__KVM_HAVE_IOAPIC is defined.

At the same time, kvm-arm commit 0ba0951 (KVM: EVENTFD: remove inclusion
of irq.h) removed the inclusion of irq.h, an architecture-specific header
that is not present on ARM but which happened to include ioapic.h on x86.

Include ioapic.h directly in eventfd.c if __KVM_HAVE_IOAPIC is defined.
This fixes x86 and lets ARM use eventfd.c.

Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/eventfd.c

index 3c5981c87c3f75ff1344296c451d6fcc48babd1c..b0fb390943c6949e6a9635277191ee7177bce0c2 100644 (file)
@@ -36,7 +36,9 @@
 #include <linux/seqlock.h>
 #include <trace/events/kvm.h>
 
-#include "irq.h"
+#ifdef __KVM_HAVE_IOAPIC
+#include "ioapic.h"
+#endif
 #include "iodev.h"
 
 #ifdef CONFIG_HAVE_KVM_IRQFD