Message ID | 0b907f1cb4b85cba39b6c2b727c80d29e096e977.1689091394.git.christophe.leroy@csgroup.eu (mailing list archive) |
---|---|
State | Changes Requested |
Headers | show |
Series | powerpc/objtool: uaccess validation for PPC32 (v4) | expand |
diff --git a/tools/objtool/check.c b/tools/objtool/check.c index 25f6df4713ed..ae0019412123 100644 --- a/tools/objtool/check.c +++ b/tools/objtool/check.c @@ -219,7 +219,7 @@ static bool __dead_end_function(struct objtool_file *file, struct symbol *func, func_for_each_insn(file, func, insn) { empty = false; - if (insn->type == INSN_RETURN) + if (insn->type == INSN_RETURN || insn->type == INSN_RETURN_CONDITIONAL) return false; } diff --git a/tools/objtool/include/objtool/arch.h b/tools/objtool/include/objtool/arch.h index 2b6d2ce4f9a5..84ba75112934 100644 --- a/tools/objtool/include/objtool/arch.h +++ b/tools/objtool/include/objtool/arch.h @@ -19,6 +19,7 @@ enum insn_type { INSN_CALL, INSN_CALL_DYNAMIC, INSN_RETURN, + INSN_RETURN_CONDITIONAL, INSN_CONTEXT_SWITCH, INSN_BUG, INSN_NOP,