summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/compat-i915-headers/gem/i915_gem_object.h
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@infradead.org>2024-01-26 11:22:07 +0300
committerHuacai Chen <chenhuacai@loongson.cn>2024-01-26 11:22:07 +0300
commit48ef9e87b407f89f230f804815af7ac2031ec17a (patch)
treebe1d7f953a325a36e266407591c3c13ea7be0dfd /drivers/gpu/drm/xe/compat-i915-headers/gem/i915_gem_object.h
parent614f362918c782d1cfa4ee50f96072a95eac264e (diff)
downloadlinux-48ef9e87b407f89f230f804815af7ac2031ec17a.tar.xz
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>
Diffstat (limited to 'drivers/gpu/drm/xe/compat-i915-headers/gem/i915_gem_object.h')
0 files changed, 0 insertions, 0 deletions