diff options
author | Geoff Levand <geoff@infradead.org> | 2013-04-05 15:20:30 -0400 |
---|---|---|
committer | Gleb Natapov <gleb@redhat.com> | 2013-04-08 06:02:09 -0400 |
commit | 8b415dcd762607379cf0a69c9dd25940da1d174e (patch) | |
tree | e92a029e27300415fb700e0de7d65f633e2ee1ea /include/linux | |
parent | e3ba45b8041740f4ab8bbba3c6239876661aeed6 (diff) |
KVM: Move kvm_rebooting declaration out of x86
The variable kvm_rebooting is a common kvm variable, so move its
declaration from arch/x86/include/asm/kvm_host.h to
include/asm/kvm_host.h.
Fixes this sparse warning when building on arm64:
virt/kvm/kvm_main.c:warning: symbol 'kvm_rebooting' was not declared. Should it be static?
Signed-off-by: Geoff Levand <geoff@infradead.org>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/kvm_host.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 71fed38c7200..20d77d24d764 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h | |||
@@ -1061,6 +1061,8 @@ static inline bool kvm_check_request(int req, struct kvm_vcpu *vcpu) | |||
1061 | } | 1061 | } |
1062 | } | 1062 | } |
1063 | 1063 | ||
1064 | extern bool kvm_rebooting; | ||
1065 | |||
1064 | #ifdef CONFIG_HAVE_KVM_CPU_RELAX_INTERCEPT | 1066 | #ifdef CONFIG_HAVE_KVM_CPU_RELAX_INTERCEPT |
1065 | 1067 | ||
1066 | static inline void kvm_vcpu_set_in_spin_loop(struct kvm_vcpu *vcpu, bool val) | 1068 | static inline void kvm_vcpu_set_in_spin_loop(struct kvm_vcpu *vcpu, bool val) |