KVM: Move kvm_spurious_fault to x86.c
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:06 +0000 (13:02 +0300)
commite3ba45b8041740f4ab8bbba3c6239876661aeed6
tree0fbaab51a2a27d842a695e5df59c171db12d0db1
parent39369f7a8b7314b8f7860c880a2198c11cebdf5a
KVM: Move kvm_spurious_fault to x86.c

The routine kvm_spurious_fault() is an x86 specific routine, so
move it from virt/kvm/kvm_main.c to arch/x86/kvm/x86.c.

Fixes this sparse warning when building on arm64:

  virt/kvm/kvm_main.c:warning: symbol 'kvm_spurious_fault' 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/kvm/x86.c
virt/kvm/kvm_main.c