Re: [PATCH v2 09/14] objtool: Add INSN_RETURN_CONDITIONAL

2023-06-22 Thread Peter Zijlstra
On Thu, Jun 22, 2023 at 12:54:31PM +0200, Christophe Leroy wrote: > Most functions have an unconditional return at the end, like > this one: > > : > 0: 81 22 04 d0 lwz r9,1232(r2) > 4: 38 60 00 00 li r3,0 > 8: 2c 09 00 00 cmpwi

[PATCH v2 09/14] objtool: Add INSN_RETURN_CONDITIONAL

2023-06-22 Thread Christophe Leroy
Most functions have an unconditional return at the end, like this one: : 0: 81 22 04 d0 lwz r9,1232(r2) 4: 38 60 00 00 li r3,0 8: 2c 09 00 00 cmpwi r9,0 c: 4d 82 00 20 beqlr <== Conditional re