]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
MIPS: kvm: Declare prototype for kvm_init_loongson_ipi
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Tue, 7 May 2024 18:51:19 +0000 (19:51 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 11 Jun 2024 11:04:06 +0000 (13:04 +0200)
Declear prototype for kvm_init_loongson_ipi in interrupt.h.

Fix warning:
arch/mips/kvm/loongson_ipi.c:190:6: warning: no previous prototype for ‘kvm_init_loongson_ipi’ [-Wmissing-prototypes]
  190 | void kvm_init_loongson_ipi(struct kvm *kvm)
      |      ^~~~~~~~~~~~~~~~~~~~~

Fixes: f21db3090de2 ("KVM: MIPS: Add Loongson-3 Virtual IPI interrupt support")
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/kvm/interrupt.h
arch/mips/kvm/loongson_ipi.c
arch/mips/kvm/mips.c

index e529ea2bb34b9bb036117a18fd719a3533959c5e..07bc0160bc943a47a0c478d8620da2e4839525ba 100644 (file)
@@ -37,3 +37,7 @@ u32 kvm_irq_to_priority(u32 irq);
 int kvm_mips_pending_timer(struct kvm_vcpu *vcpu);
 
 void kvm_mips_deliver_interrupts(struct kvm_vcpu *vcpu, u32 cause);
+
+#ifdef CONFIG_CPU_LOONGSON64
+extern void kvm_init_loongson_ipi(struct kvm *kvm);
+#endif
index 5d53f32d837c1271c95261734df5b6dddf0b0bdd..6ac83a31148cb30cd8ce2ea0f507bb41108d3999 100644 (file)
@@ -10,6 +10,8 @@
 
 #include <linux/kvm_host.h>
 
+#include "interrupt.h"
+
 #define IPI_BASE            0x3ff01000ULL
 
 #define CORE0_STATUS_OFF       0x000
index 231ac052b506b9a69768e2f06be969fabddd0e45..56fedfbe9455e39d64c54405944f2df644ea74ee 100644 (file)
@@ -135,8 +135,6 @@ void kvm_arch_hardware_disable(void)
        kvm_mips_callbacks->hardware_disable();
 }
 
-extern void kvm_init_loongson_ipi(struct kvm *kvm);
-
 int kvm_arch_init_vm(struct kvm *kvm, unsigned long type)
 {
        switch (type) {