diff options
author | Gary S. Robertson <gary.robertson@linaro.org> | 2015-04-08 15:52:26 -0500 |
---|---|---|
committer | Gary S. Robertson <gary.robertson@linaro.org> | 2015-04-08 16:43:01 -0500 |
commit | c172061cb346e0ca0dafe1f3eec17e8c4a20e6bb (patch) | |
tree | ee301fa81c5babd42b4c17eecb8eae3b8bbc0653 | |
parent | 8800113cafc11291a2ae1370cb87727629b76301 (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.c | 3 |
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 |