Commit 8b415dcd762607379cf0a69c9dd25940da1d174e

Authored by Geoff Levand
Committed by Gleb Natapov
1 parent e3ba45b804

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>

Showing 2 changed files with 2 additions and 1 deletions Side-by-side Diff

arch/x86/include/asm/kvm_host.h
... ... @@ -972,7 +972,6 @@
972 972 * Trap the fault and ignore the instruction if that happens.
973 973 */
974 974 asmlinkage void kvm_spurious_fault(void);
975   -extern bool kvm_rebooting;
976 975  
977 976 #define ____kvm_handle_fault_on_reboot(insn, cleanup_insn) \
978 977 "666: " insn "\n\t" \
include/linux/kvm_host.h
... ... @@ -1061,6 +1061,8 @@
1061 1061 }
1062 1062 }
1063 1063  
  1064 +extern bool kvm_rebooting;
  1065 +
1064 1066 #ifdef CONFIG_HAVE_KVM_CPU_RELAX_INTERCEPT
1065 1067  
1066 1068 static inline void kvm_vcpu_set_in_spin_loop(struct kvm_vcpu *vcpu, bool val)