Skip to content

Commit 29f1b65

Browse files
chazybonzini
authored andcommitted
KVM: EVENTFD: Remove inclusion of irq.h
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>
1 parent f51770e commit 29f1b65

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎virt/kvm/eventfd.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@
3636
#include <linux/seqlock.h>
3737
#include <trace/events/kvm.h>
3838

39-
#include "irq.h"
39+
#ifdef __KVM_HAVE_IOAPIC
40+
#include "ioapic.h"
41+
#endif
4042
#include "iodev.h"
4143

4244
#ifdef CONFIG_HAVE_KVM_IRQFD

0 commit comments

Comments
 (0)