aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
diff options
context:
space:
mode:
authorHuacai Chen <[email protected]>2025-05-30 13:45:48 +0000
committerHuacai Chen <[email protected]>2025-05-30 13:45:48 +0000
commit52c22661c79a7b6af7fad9f77200738fc6c51878 (patch)
tree5a6b5dbfc9160b0aa3b920b2c42df190a03b85b8 /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
parentLoongArch: Introduce the numa_memblks conversion (diff)
downloadkernel-52c22661c79a7b6af7fad9f77200738fc6c51878.tar.gz
kernel-52c22661c79a7b6af7fad9f77200738fc6c51878.zip
LoongArch: Avoid using $r0/$r1 as "mask" for csrxchg
When building kernel with LLVM there are occasionally such errors: In file included from ./include/linux/spinlock.h:59: In file included from ./include/linux/irqflags.h:17: arch/loongarch/include/asm/irqflags.h:38:3: error: must not be $r0 or $r1 38 | "csrxchg %[val], %[mask], %[reg]\n\t" | ^ <inline asm>:1:16: note: instantiated into assembly here 1 | csrxchg $a1, $ra, 0 | ^ To prevent the compiler from allocating $r0 or $r1 for the "mask" of the csrxchg instruction, the 'q' constraint must be used but Clang < 21 does not support it. So force to use $t0 in the inline asm, in order to avoid using $r0/$r1 while keeping the backward compatibility. Cc: [email protected] Link: https://github.com/llvm/llvm-project/pull/141037 Reviewed-by: Yanteng Si <[email protected]> Suggested-by: WANG Rui <[email protected]> Signed-off-by: Huacai Chen <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions