diff options
author | Josh Poimboeuf <jpoimboe@kernel.org> | 2023-06-02 19:54:53 +0200 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2023-06-02 21:12:24 +0200 |
commit | ff9a6459bbec06df7da2545020d7383aba13b3fb (patch) | |
tree | 96f27643c694c44766d513f9ad1aaed4a801571a /tools/objtool | |
parent | objtool: Move noreturn function list to separate file (diff) | |
download | linux-ff9a6459bbec06df7da2545020d7383aba13b3fb.tar.xz linux-ff9a6459bbec06df7da2545020d7383aba13b3fb.zip |
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
Diffstat (limited to 'tools/objtool')
-rw-r--r-- | tools/objtool/noreturns.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/objtool/noreturns.h b/tools/objtool/noreturns.h index cede6068ddf6..1514e84d5cc4 100644 --- a/tools/objtool/noreturns.h +++ b/tools/objtool/noreturns.h @@ -7,6 +7,7 @@ * Yes, this is unfortunate. A better solution is in the works. */ NORETURN(__invalid_creds) +NORETURN(__kunit_abort) NORETURN(__module_put_and_kthread_exit) NORETURN(__reiserfs_panic) NORETURN(__stack_chk_fail) |