aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/compiler.h
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2022-03-08 16:30:49 +0100
committerPeter Zijlstra <peterz@infradead.org>2022-03-15 10:32:44 +0100
commit0e5b613b4d4be3345dda349fb90dd73d2103302f (patch)
tree8c6a02510634e7c0046ae8bf34a5763979dd3c61 /include/linux/compiler.h
parentx86: Mark __invalid_creds() __noreturn (diff)
downloadlinux-dev-0e5b613b4d4be3345dda349fb90dd73d2103302f.tar.xz
linux-dev-0e5b613b4d4be3345dda349fb90dd73d2103302f.zip
objtool: Rework ASM_REACHABLE
Currently ASM_REACHABLE only works for UD2 instructions; reorder things to also allow over-riding dead_end_function(). To that end: - Mark INSN_BUG instructions in decode_instructions(), this saves having to iterate all instructions yet again. - Have add_call_destinations() set insn->dead_end for dead_end_function() calls. - Move add_dead_ends() *after* add_call_destinations() such that ASM_REACHABLE can clear the ->dead_end mark. - have validate_branch() only check ->dead_end. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: Josh Poimboeuf <jpoimboe@redhat.com> Link: https://lore.kernel.org/r/20220308154319.410010807@infradead.org
Diffstat (limited to 'include/linux/compiler.h')
0 files changed, 0 insertions, 0 deletions