diff options
author | Peter Zijlstra <peterz@infradead.org> | 2022-04-08 11:45:56 +0200 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2022-04-19 21:58:48 +0200 |
commit | d66e9d50ea5cd76b2c4875c758efad665283d7ad (patch) | |
tree | 40e05c3bf3f9a9667f1dd324edb115f83c3a2da6 | |
parent | x86,objtool: Mark cpu_startup_entry() __noreturn (diff) | |
download | linux-d66e9d50ea5cd76b2c4875c758efad665283d7ad.tar.xz linux-d66e9d50ea5cd76b2c4875c758efad665283d7ad.zip |
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
-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 |