Skip to content
Commit fc1b7492 authored by Geoff Levand's avatar Geoff Levand Committed by Gleb Natapov
Browse files

KVM: Move vm_list kvm_lock declarations out of x86



The variables vm_list and kvm_lock are common to all architectures, so
move the declarations from arch/x86/include/asm/kvm_host.h to
include/linux/kvm_host.h.

Fixes sparse warnings like these when building for arm64:

  virt/kvm/kvm_main.c: warning: symbol 'kvm_lock' was not declared. Should it be static?
  virt/kvm/kvm_main.c: warning: symbol 'vm_list' was not declared. Should it be static?

Signed-off-by: default avatarGeoff Levand <geoff@infradead.org>
Signed-off-by: default avatarGleb Natapov <gleb@redhat.com>
parent a63cb560
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment