]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/asm/segment: Use ASM_INPUT_RM in __loadsegment_fs()
authorUros Bizjak <ubizjak@gmail.com>
Mon, 30 Mar 2026 05:57:44 +0000 (07:57 +0200)
committerIngo Molnar <mingo@kernel.org>
Mon, 30 Mar 2026 07:10:16 +0000 (09:10 +0200)
commitcaf3cb2ef22e4b4ff9f6bb48f71ce30dae663326
tree6e45137ee00bb37cc2c5206fd133b888d463ca2d
parent8379ca68a01c38485b620d36a72d8aeeca86e743
x86/asm/segment: Use ASM_INPUT_RM in __loadsegment_fs()

Use the ASM_INPUT_RM macro in __loadsegment_fs() to work around Clang
problems with the "rm" asm constraint. Clang seems to always chose the
memory input, while it is almost always the worst choice.

Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Nathan Chancellor <nathan@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: H. Peter Anvin <hpa@zytor.com>
Link: https://patch.msgid.link/20260330055823.5793-3-ubizjak@gmail.com
arch/x86/include/asm/segment.h