Skip to content

Commit 6126ed5

Browse files
jpoimboePeter Zijlstra
authored andcommitted
objtool: Remove superfluous dead_end_function() check
annotate_call_site() already sets 'insn->dead_end' for calls to dead end functions. Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/5d603a301e9a8b1036b61503385907e154867ace.1681325924.git.jpoimboe@kernel.org
1 parent 9290e77 commit 6126ed5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

tools/objtool/check.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4078,8 +4078,7 @@ static bool ignore_unreachable_insn(struct objtool_file *file, struct instructio
40784078
* It may also insert a UD2 after calling a __noreturn function.
40794079
*/
40804080
prev_insn = prev_insn_same_sec(file, insn);
4081-
if ((prev_insn->dead_end ||
4082-
dead_end_function(file, insn_call_dest(prev_insn))) &&
4081+
if (prev_insn->dead_end &&
40834082
(insn->type == INSN_BUG ||
40844083
(insn->type == INSN_JUMP_UNCONDITIONAL &&
40854084
insn->jump_dest && insn->jump_dest->type == INSN_BUG)))

0 commit comments

Comments
 (0)