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: db1ecca22edf ("LoongArch: KVM: Add LSX (128bit SIMD) support")
Fixes: 118e10cd893d ("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
..
2022-06-03 20:09:28 +08:00
2023-09-20 14:26:29 +08:00
2022-06-03 20:09:28 +08:00
2022-06-03 20:09:28 +08:00
2022-10-12 16:36:19 +08:00
2022-06-03 20:09:28 +08:00
2022-06-03 20:09:28 +08:00
2022-08-12 13:10:11 +08:00
2022-06-03 20:09:28 +08:00
2022-06-03 20:09:28 +08:00
2023-05-18 11:07:54 +02:00
2022-10-12 16:36:14 +08:00
2022-06-08 11:00:40 +08:00
2022-06-03 20:09:28 +08:00
2022-06-03 20:09:28 +08:00
2023-11-12 10:58:08 -08:00
2023-08-25 23:40:26 +08:00
2022-10-12 16:36:19 +08:00
2023-09-06 22:53:55 +08:00
2024-01-02 13:16:29 -05:00
2022-06-03 20:09:28 +08:00
2022-08-12 13:10:11 +08:00
2024-01-05 10:17:44 -08:00
2022-06-03 20:09:28 +08:00
2022-06-03 20:09:28 +08:00
2022-06-03 20:09:28 +08:00
2022-10-12 16:36:14 +08:00
2022-06-03 20:09:28 +08:00
2022-06-03 20:09:28 +08:00
2022-06-03 20:09:28 +08:00
2023-06-29 20:58:44 +08:00
2022-06-03 20:09:28 +08:00