summaryrefslogtreecommitdiff
path: root/scripts/split-man.pl
diff options
context:
space:
mode:
authorJosh Poimboeuf <jpoimboe@kernel.org>2024-06-26 09:02:00 +0300
committerBorislav Petkov (AMD) <bp@alien8.de>2024-06-28 16:23:38 +0300
commit9142be9e6443fd641ca37f820efe00d9cd890eb1 (patch)
treea1c5ddd81eab9c6cbb8d65ebbe40d73ddc5708ee /scripts/split-man.pl
parentf2661062f16b2de5d7b6a5c42a9a5c96326b8454 (diff)
downloadlinux-9142be9e6443fd641ca37f820efe00d9cd890eb1.tar.xz
x86/syscall: Mark exit[_group] syscall handlers __noreturn
The direct-call syscall dispatch function doesn't know that the exit() and exit_group() syscall handlers don't return, so the call sites aren't optimized accordingly. Fix that by marking the exit syscall declarations __noreturn. Fixes the following warnings: vmlinux.o: warning: objtool: x64_sys_call+0x2804: __x64_sys_exit() is missing a __noreturn annotation vmlinux.o: warning: objtool: ia32_sys_call+0x29b6: __ia32_sys_exit_group() is missing a __noreturn annotation Fixes: 1e3ad78334a6 ("x86/syscall: Don't force use of indirect calls for system calls") Closes: https://lkml.kernel.org/lkml/6dba9b32-db2c-4e6d-9500-7a08852f17a3@paulmck-laptop Reported-by: Paul E. McKenney <paulmck@kernel.org> Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Tested-by: Paul E. McKenney <paulmck@kernel.org> Link: https://lore.kernel.org/r/5d8882bc077d8eadcc7fd1740b56dfb781f12288.1719381528.git.jpoimboe@kernel.org
Diffstat (limited to 'scripts/split-man.pl')
0 files changed, 0 insertions, 0 deletions