1
linux/arch/loongarch
Randy Dunlap 48ef9e87b4 LoongArch: KVM: Add returns to SIMD stubs
The stubs for kvm_own/lsx()/kvm_own_lasx() when CONFIG_CPU_HAS_LSX or
CONFIG_CPU_HAS_LASX is not defined should have a return value since they
return an int, so add "return -EINVAL;" to the stubs.
Fixes the build error:

In file included from ../arch/loongarch/include/asm/kvm_csr.h:12,
                 from ../arch/loongarch/kvm/interrupt.c:8:
../arch/loongarch/include/asm/kvm_vcpu.h: In function 'kvm_own_lasx':
../arch/loongarch/include/asm/kvm_vcpu.h:73:39: error: no return statement in function returning non-void [-Werror=return-type]
   73 | static inline int kvm_own_lasx(struct kvm_vcpu *vcpu) { }

Fixes: db1ecca22e ("LoongArch: KVM: Add LSX (128bit SIMD) support")
Fixes: 118e10cd89 ("LoongArch: KVM: Add LASX (256bit SIMD) support")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
2024-01-26 16:22:07 +08:00
..
boot LoongArch: dts: DeviceTree for Loongson-2K2000 2024-01-17 12:43:08 +08:00
configs LoongArch changes for v6.8 2024-01-19 13:30:49 -08:00
crypto
include LoongArch: KVM: Add returns to SIMD stubs 2024-01-26 16:22:07 +08:00
kernel LoongArch/smp: Call rcutree_report_cpu_starting() at tlb_init() 2024-01-26 16:22:07 +08:00
kvm LoongArch: KVM: Fix build due to API changes 2024-01-26 16:22:07 +08:00
lib
mm LoongArch/smp: Call rcutree_report_cpu_starting() at tlb_init() 2024-01-26 16:22:07 +08:00
net LoongArch: BPF: Prevent out-of-bounds memory access 2024-01-17 12:43:13 +08:00
pci
power
vdso arch: vdso: consolidate gettime prototypes 2023-11-23 11:32:32 +01:00
Kbuild LoongArch: Allow device trees be built into the kernel 2024-01-17 12:43:00 +08:00
Kconfig LoongArch changes for v6.8 2024-01-19 13:30:49 -08:00
Kconfig.debug
Makefile LoongArch: Allow device trees be built into the kernel 2024-01-17 12:43:00 +08:00