]> git.openfabrics.org - ~emulex/infiniband.git/commit
KVM: Move vm_list kvm_lock declarations out of x86
authorGeoff Levand <geoff@infradead.org>
Fri, 5 Apr 2013 19:20:30 +0000 (19:20 +0000)
committerGleb Natapov <gleb@redhat.com>
Mon, 8 Apr 2013 10:02:00 +0000 (13:02 +0300)
commitfc1b74925f87f6aca5432eb73f6a57eff30afde7
treef0b14d3914f4d3d9881f8058372ee1de00a85361
parenta63cb56061239372fce2452dbedd35c95bd665aa
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: Geoff Levand <geoff@infradead.org>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
arch/x86/include/asm/kvm_host.h
include/linux/kvm_host.h