aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary S. Robertson <gary.robertson@linaro.org>2015-04-08 15:52:26 -0500
committerGary S. Robertson <gary.robertson@linaro.org>2015-04-08 15:52:57 -0500
commitc0fdc1baa22e25c4b4b63e6e90b5865d78eee46e (patch)
tree830c88c21eda7311e28f4bbb5034c67df0baf1fc
parent301ec551da4d0d0c7d7d8c6bbdfe5deb154c41f2 (diff)
KVM:EVENTFD: fix implicit declaration on x86/_64
During compilation for x86 and x86_64, received the following warning: virt/kvm/eventfd.c:493:2: error: implicit declaration of function 'kvm_vcpu_request_scan_ioapic' [-Werror=implicit-function-declaration] kvm_vcpu_request_scan_ioapic(kvm); Commit 29f1b65 KVM:EVENTFD: Remove inclusion of irq.h by Christoffer Dall addresses this issue in later kernels. This backport incudes those portions of that patch which are relevant in the 3.14 tree. Signed-off-by: Gary S. Robertson <gary.robertson@linaro.org>
-rw-r--r--virt/kvm/eventfd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/virt/kvm/eventfd.c b/virt/kvm/eventfd.c
index 0ab1411eb007..ce3ca4c54534 100644
--- a/virt/kvm/eventfd.c
+++ b/virt/kvm/eventfd.c
@@ -36,6 +36,9 @@
#include <linux/seqlock.h>
#include <trace/events/kvm.h>
+#ifdef __KVM_HAVE_IOAPIC
+#include "ioapic.h"
+#endif
#include "iodev.h"
#ifdef CONFIG_HAVE_KVM_IRQFD