]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/tls: Clean up 'sel' variable usage in do_set_thread_area()
authorUros Bizjak <ubizjak@gmail.com>
Mon, 30 Mar 2026 08:59:23 +0000 (10:59 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 31 Mar 2026 07:50:11 +0000 (09:50 +0200)
commit3b19e22cffe61bcdf10ee5e7584cfa3c1c54dc92
tree3d9383d1cf21423bcf971b5f5eabb9e9274f2712
parent6829f19810e96903d7b532145c3d1701b4d9a0f6
x86/tls: Clean up 'sel' variable usage in do_set_thread_area()

The top-level 'sel' variable in do_set_thread_area() was previously
marked __maybe_unused, but it is now only needed locally when
updating the current task.

Remove the unused top-level declaration and introduce a local 'sel'
variable where it is actually used

No functional change intended.

Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: https://patch.msgid.link/20260330085938.67985-4-ubizjak@gmail.com
arch/x86/kernel/tls.c