Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LoongArch: KVM: Fix unknown register name 'v0' in asm
According to KVM documention for LoongArch, 'v0' should be 'a0'. And 'a0' has been there upstream. Fix follow compile errors with clang-19: In file included from ./include/uapi/linux/kvm_para.h:41: ./arch/loongarch/include/asm/kvm_para.h:44:24: error: unknown register name 'v0' in asm 44 | register long ret asm("v0"); | ^ ./arch/loongarch/include/asm/kvm_para.h:59:24: error: unknown register name 'v0' in asm 59 | register long ret asm("v0"); | ^ ./arch/loongarch/include/asm/kvm_para.h:76:24: error: unknown register name 'v0' in asm 76 | register long ret asm("v0"); | ^ ./arch/loongarch/include/asm/kvm_para.h:94:24: error: unknown register name 'v0' in asm 94 | register long ret asm("v0"); | ^ ./arch/loongarch/include/asm/kvm_para.h:114:24: error: unknown register name 'v0' in asm 114 | register long ret asm("v0"); | ^ ./arch/loongarch/include/asm/kvm_para.h:135:24: error: unknown register name 'v0' in asm 135 | register long ret asm("v0"); | ^ 6 errors generated. Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e33bda7ee50c3c20d80f5ca6dc5ca2cd37863518 Signed-off-by: Mingcong Bai <[email protected]> Signed-off-by: WangYuli <[email protected]>
- Loading branch information