Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

MIPS: kvm: Declare prototype for kvm_init_loongson_ipi

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>

authored by

Jiaxun Yang and committed by
Thomas Bogendoerfer
4ba491dd 68557c59

+6 -2
+4
arch/mips/kvm/interrupt.h
··· 37 37 int kvm_mips_pending_timer(struct kvm_vcpu *vcpu); 38 38 39 39 void kvm_mips_deliver_interrupts(struct kvm_vcpu *vcpu, u32 cause); 40 + 41 + #ifdef CONFIG_CPU_LOONGSON64 42 + extern void kvm_init_loongson_ipi(struct kvm *kvm); 43 + #endif
+2
arch/mips/kvm/loongson_ipi.c
··· 10 10 11 11 #include <linux/kvm_host.h> 12 12 13 + #include "interrupt.h" 14 + 13 15 #define IPI_BASE 0x3ff01000ULL 14 16 15 17 #define CORE0_STATUS_OFF 0x000
-2
arch/mips/kvm/mips.c
··· 135 135 kvm_mips_callbacks->hardware_disable(); 136 136 } 137 137 138 - extern void kvm_init_loongson_ipi(struct kvm *kvm); 139 - 140 138 int kvm_arch_init_vm(struct kvm *kvm, unsigned long type) 141 139 { 142 140 switch (type) {