]> git.ipfire.org Git - thirdparty/linux.git/commit
clang: work around asm output constraint problems
authorEric Dumazet <edumazet@google.com>
Fri, 19 Dec 2025 11:20:06 +0000 (11:20 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 20 Dec 2025 22:47:05 +0000 (14:47 -0800)
commit4cc5373f2e749a6c96e8b9fa971931a4dd852860
tree60a3d2520d521268ccc7594d1b5865068aff70af
parentf67e8a5e3ead61692d24a68e30496bd2634f5b68
clang: work around asm output constraint problems

Work around clang problems with "=rm" asm constraint.

clang seems to always chose the memory output, while it is almost
always the worst choice.

Add ASM_OUTPUT_RM so that we can replace "=rm" constraint
where it matters for clang, while not penalizing gcc.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Suggested-by: Uros Bizjak <ubizjak@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/compiler-clang.h
include/linux/compiler_types.h