diff options
author | Peter Zijlstra <peterz@infradead.org> | 2022-04-08 12:45:56 +0300 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2022-04-19 22:58:48 +0300 |
commit | d66e9d50ea5cd76b2c4875c758efad665283d7ad (patch) | |
tree | 40e05c3bf3f9a9667f1dd324edb115f83c3a2da6 /arch/x86/entry | |
parent | d4e5268a08b211b536fed29beb24271ecd85187e (diff) | |
download | linux-d66e9d50ea5cd76b2c4875c758efad665283d7ad.tar.xz |
x86,objtool: Explicitly mark idtentry_body()s tail REACHABLE
Objtool can figure out that some \cfunc()s are noreturn and then
complains about certain instances having unreachable tails:
vmlinux.o: warning: objtool: asm_exc_xen_unknown_trap()+0x16: unreachable instruction
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Link: https://lore.kernel.org/r/20220408094718.441854969@infradead.org
Diffstat (limited to 'arch/x86/entry')
-rw-r--r-- | arch/x86/entry/entry_64.S | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/entry/entry_64.S b/arch/x86/entry/entry_64.S index 4faac48ebec5..73d958522b6a 100644 --- a/arch/x86/entry/entry_64.S +++ b/arch/x86/entry/entry_64.S @@ -337,6 +337,9 @@ SYM_CODE_END(ret_from_fork) call \cfunc + /* For some configurations \cfunc ends up being a noreturn. */ + REACHABLE + jmp error_return .endm |