Skip to content

Commit d66e9d5

Browse files
author
Peter Zijlstra
committed
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) <[email protected]> Acked-by: Josh Poimboeuf <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent d4e5268 commit d66e9d5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/x86/entry/entry_64.S

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,9 @@ SYM_CODE_END(ret_from_fork)
337337

338338
call \cfunc
339339

340+
/* For some configurations \cfunc ends up being a noreturn. */
341+
REACHABLE
342+
340343
jmp error_return
341344
.endm
342345

0 commit comments

Comments
 (0)