linux-stable/arch/loongarch/include/asm
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
..
vdso LoongArch: Add support to clone a time namespace 2023-06-29 20:58:43 +08:00
acenv.h
acpi.h LoongArch: Export some arch-specific pm interfaces 2023-06-29 20:58:44 +08:00
addrspace.h LoongArch: Use _UL() and _ULL() 2023-09-20 14:26:29 +08:00
alternative-asm.h
alternative.h
asm-extable.h
asm-offsets.h
asm-prototypes.h LoongArch: Add Loongson Binary Translation (LBT) extension support 2023-09-06 22:53:55 +08:00
asm.h LoongArch: Mark some assembler symbols as non-kprobe-able 2023-02-25 22:12:17 +08:00
asmmacro.h LoongArch: Record pc instead of offset in la_abs relocation 2023-11-21 15:03:25 +08:00
atomic.h LoongArch: Relax memory ordering for atomic operations 2023-11-08 14:12:15 +08:00
barrier.h LoongArch: Support dbar with different hints 2023-06-29 20:58:44 +08:00
bitops.h
bitrev.h
bootinfo.h LoongArch: Let cores_io_master cover the largest NR_CPUS 2024-01-17 12:43:08 +08:00
branch.h
bug.h
cache.h
cacheflush.h mm: rationalise flush_icache_pages() and flush_icache_page() 2023-08-24 16:20:25 -07:00
cacheops.h
checksum.h LoongArch: Add checksum optimization for 64-bit system 2023-05-01 17:19:43 +08:00
clocksource.h
cmpxchg.h locking/arch: Rename all internal __xchg() names to __arch_xchg() 2023-04-29 09:08:44 +02:00
cpu-features.h LoongArch: Introduce hardware page table walker 2023-06-29 20:58:44 +08:00
cpu-info.h LoongArch: Add SMT (Simultaneous Multi-Threading) support 2023-06-29 20:58:43 +08:00
cpu.h LoongArch: Introduce hardware page table walker 2023-06-29 20:58:44 +08:00
cpufeature.h
crash_core.h LoongArch: Use generic interface to support crashkernel=X,[high,low] 2024-01-17 12:43:08 +08:00
delay.h
dma-direct.h
dma.h
dmi.h
efi.h efi/loongarch: Directly position the loaded image file 2023-12-19 11:16:37 +01:00
elf.h LoongArch: Fix and simplify fcsr initialization on execve() 2024-01-17 12:43:08 +08:00
entry-common.h
exception.h LoongArch: Fix some build warnings with W=1 2023-09-20 14:26:28 +08:00
exec.h
extable.h
fb.h fbdev: Rename fb_mem*() helpers 2023-05-18 11:07:54 +02:00
fixmap.h
fpregdef.h LoongArch: Prepare for assemblers with proper FCSR class support 2023-06-29 20:58:43 +08:00
fpu.h LoongArch: Ensure FP/SIMD registers in the core dump file is up to date 2023-08-26 22:21:57 +08:00
ftrace.h LoongArch: Fix definition of ftrace_regs_set_instruction_pointer() 2024-01-17 12:43:08 +08:00
futex.h
gpr-num.h LoongArch: extable: Also recognize ABI names of registers 2023-06-29 20:58:43 +08:00
hardirq.h
hugetlb.h
hw_breakpoint.h LoongArch: Add hardware breakpoints/watchpoints support 2023-02-25 22:12:17 +08:00
hw_irq.h
idle.h
inst.h LoongArch changes for v6.7 2023-11-12 10:58:08 -08:00
io.h LoongArch: Disable WUC for pgprot_writecombine() like ioremap_wc() 2023-10-18 08:42:52 +08:00
irq.h nmi_backtrace: allow excluding an arbitrary CPU 2023-08-18 10:19:00 -07:00
irq_regs.h
irqflags.h
jump_label.h LoongArch: Add jump-label implementation 2023-06-29 20:58:44 +08:00
kasan.h LoongArch: Don't inline kasan_mem_to_shadow()/kasan_shadow_to_mem() 2023-09-20 14:26:29 +08:00
Kbuild LoongArch: Remove <asm/export.h> 2023-08-25 23:40:26 +08:00
kdebug.h LoongArch: Remove five DIE_* definitions in kdebug.h 2023-06-29 20:58:44 +08:00
kexec.h
kfence.h LoongArch: Add KFENCE (Kernel Electric-Fence) support 2023-09-06 22:54:16 +08:00
kgdb.h LoongArch: Add basic KGDB & KDB support 2023-09-06 22:53:55 +08:00
kprobes.h LoongArch: Use larch_insn_gen_break() for kprobes 2023-06-29 20:58:44 +08:00
kvm_csr.h LoongArch: KVM: Add vcpu related header files 2023-10-02 10:01:27 +08:00
kvm_host.h LoongArch KVM changes for v6.8 2024-01-02 13:16:29 -05:00
kvm_mmu.h LoongArch: KVM: Implement kvm mmu operations 2023-10-02 10:01:28 +08:00
kvm_types.h LoongArch: KVM: Add kvm related header files 2023-10-02 10:01:20 +08:00
kvm_vcpu.h LoongArch: KVM: Add returns to SIMD stubs 2024-01-26 16:22:07 +08:00
lbt.h LoongArch: Add Loongson Binary Translation (LBT) extension support 2023-09-06 22:53:55 +08:00
linkage.h LoongArch: Use SYM_CODE_* to annotate exception handlers 2023-10-18 08:42:52 +08:00
local.h locking/local, arch: Rewrite local_add_unless() as a static inline function 2023-10-04 11:38:11 +02:00
loongarch.h LoongArch: Slightly clean up drdtime() 2023-12-09 15:49:15 +08:00
loongson.h
mmu.h
mmu_context.h
mmzone.h LoongArch: Use static defined zero page rather than allocated 2023-09-06 22:53:10 +08:00
module.h LoongArch: Add guard for the larch_insn_gen_xxx functions 2023-06-29 20:58:42 +08:00
module.lds.h LoongArch: module: set section addresses to 0x0 2023-04-18 19:38:58 +08:00
numa.h
page.h LoongArch: mm: Add page table mapped mode support for virt_to_page() 2023-09-06 22:53:55 +08:00
pci.h
percpu.h LoongArch: Add __percpu annotation for __percpu_read()/__percpu_write() 2023-11-21 15:03:25 +08:00
perf_event.h
pgalloc.h mm: add statistics for PUD level pagetable 2023-10-06 14:44:10 -07:00
pgtable-bits.h LoongArch: Disable WUC for pgprot_writecombine() like ioremap_wc() 2023-10-18 08:42:52 +08:00
pgtable.h mm/mglru: add dummy pmd_dirty() 2024-01-05 10:17:44 -08:00
prefetch.h
processor.h LoongArch: Add Loongson Binary Translation (LBT) extension support 2023-09-06 22:53:55 +08:00
ptrace.h LoongArch: Add identifier names to arguments of die() declaration 2023-08-25 23:40:26 +08:00
qspinlock.h LoongArch: Support dbar with different hints 2023-06-29 20:58:44 +08:00
regdef.h
seccomp.h
serial.h
setup.h LoongArch: Record pc instead of offset in la_abs relocation 2023-11-21 15:03:25 +08:00
smp.h LoongArch: Fix some build warnings with W=1 2023-09-20 14:26:28 +08:00
sparsemem.h
spinlock.h
spinlock_types.h
stackframe.h LoongArch: Add basic KGDB & KDB support 2023-09-06 22:53:55 +08:00
stackprotector.h
stacktrace.h
string.h LoongArch: Add KASAN (Kernel Address Sanitizer) support 2023-09-06 22:54:16 +08:00
suspend.h LoongArch: Export some arch-specific pm interfaces 2023-06-29 20:58:44 +08:00
switch_to.h LoongArch: Add Loongson Binary Translation (LBT) extension support 2023-09-06 22:53:55 +08:00
syscall.h
thread_info.h LoongArch: Add Loongson Binary Translation (LBT) extension support 2023-09-06 22:53:55 +08:00
time.h
timex.h
tlb.h LoongArch: Introduce hardware page table walker 2023-06-29 20:58:44 +08:00
tlbflush.h
topology.h
types.h
uaccess.h LoongArch: Use la.pcrel instead of la.abs when it's trivially possible 2023-02-25 22:12:16 +08:00
unistd.h
unwind.h
uprobes.h LoongArch: Add uprobes support 2023-06-29 20:58:44 +08:00
vdso.h
vermagic.h
vmalloc.h
xor.h LoongArch: Add SIMD-optimized XOR routines 2023-09-06 22:53:55 +08:00
xor_simd.h LoongArch: Add SIMD-optimized XOR routines 2023-09-06 22:53:55 +08:00