Skip to content

Commit

Permalink
KVM: EVENTFD: Remove inclusion of irq.h
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
chazy authored and bonzini committed Sep 24, 2014
1 parent f51770e commit 29f1b65
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion virt/kvm/eventfd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 29f1b65

Please sign in to comment.