Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

objtool: Add __kunit_abort() to noreturns

Fixes a bunch of warnings like:

drivers/input/tests/input_test.o: warning: objtool: input_test_init+0x1cb: stack state mismatch: cfa1=4+64 cfa2=4+56
lib/kunit/kunit-test.o: warning: objtool: kunit_log_newline_test+0xfb: return with modified stack frame
...

Fixes: 260755184cbd ("kunit: Move kunit_abort() call out of kunit_do_failed_assertion()")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20230602175453.swsn3ehyochtwkhy@treble

authored by

Josh Poimboeuf and committed by
Peter Zijlstra
ff9a6459 6245ce4a

+1
+1
tools/objtool/noreturns.h
··· 7 7 * Yes, this is unfortunate. A better solution is in the works. 8 8 */ 9 9 NORETURN(__invalid_creds) 10 + NORETURN(__kunit_abort) 10 11 NORETURN(__module_put_and_kthread_exit) 11 12 NORETURN(__reiserfs_panic) 12 13 NORETURN(__stack_chk_fail)