aboutsummaryrefslogtreecommitdiffstats
path: root/virt/kvm/kvm_main.c
diff options
context:
space:
mode:
authorGeoff Levand <geoff@infradead.org>2013-04-05 15:20:30 -0400
committerGleb Natapov <gleb@redhat.com>2013-04-08 06:02:06 -0400
commite3ba45b8041740f4ab8bbba3c6239876661aeed6 (patch)
tree0fbaab51a2a27d842a695e5df59c171db12d0db1 /virt/kvm/kvm_main.c
parent39369f7a8b7314b8f7860c880a2198c11cebdf5a (diff)
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>
Diffstat (limited to 'virt/kvm/kvm_main.c')
-rw-r--r--virt/kvm/kvm_main.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index 9ad98769dd75..5cc53c907d3b 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -2572,14 +2572,6 @@ static int kvm_cpu_hotplug(struct notifier_block *notifier, unsigned long val,
2572 return NOTIFY_OK; 2572 return NOTIFY_OK;
2573} 2573}
2574 2574
2575
2576asmlinkage void kvm_spurious_fault(void)
2577{
2578 /* Fault while not rebooting. We want the trace. */
2579 BUG();
2580}
2581EXPORT_SYMBOL_GPL(kvm_spurious_fault);
2582
2583static int kvm_reboot(struct notifier_block *notifier, unsigned long val, 2575static int kvm_reboot(struct notifier_block *notifier, unsigned long val,
2584 void *v) 2576 void *v)
2585{ 2577{