objtool: Re-add resume_play_dead() to noreturn list
PATCH 1/1 objtool: Re-add resume_play_dead() to noreturn list
resume_play_dead() was added to the noreturn list in commit 52668badd34b ("x86/cpu: Mark {hlt,resume}_play_dead() __noreturn"), but was dropped in commit 6245ce4ab670 ("objtool: Move noreturn function list to separate file") when the list was moved to noreturns.h.
Fix this by adding resume_play_dead() to the list again.
--- tools/objtool/noreturns.h | 1 + 1 file changed, 1 insertion(+)
tools/objtool/noreturns.h +1 -0
@@ -42,6 +42,7 @@ NORETURN(panic) NORETURN(vpanic) NORETURN(panic_smp_self_stop) NORETURN(rest_init) +NORETURN(resume_play_dead) NORETURN(rewind_stack_and_make_dead) NORETURN(rust_begin_unwind) NORETURN(rust_helper_BUG)
Signature · 1 line
2.51.0
Josh Poimboeuf
maintainerQuoted 9 lines · Thorsten Blum
resume_play_dead()was added to the noreturn list in commit52668badd34b("x86/cpu: Mark {hlt,resume}_play_dead()__noreturn"), but was dropped in commit6245ce4ab670("objtool: Move noreturn function list to separate file") when the list was moved tonoreturns.h.Fix this by adding
resume_play_dead()to the list again.Fixes 6245ce4ab670 ("objtool: Move noreturn function list to separate file")Signed-off-by Thorsten Blum <[email protected]>
Hm? There's no "resume_play_dead" in the diff for 6245ce4ab670.
That was actually done intentionally with a different commit:
34245659debd ("objtool: Remove superfluous global_noreturns entries")
Signature · 1 line
Josh
Quoted 5 lines · Josh Poimboeuf
Hm? There's no "
resume_play_dead" in the diff for6245ce4ab670.That was actually done intentionally with a different commit:
34245659debd("objtool: Remove superfluousglobal_noreturnsentries")
Sorry, I must have missed this. Please drop this patch then.
It's a bit unfortunate that this is neither documented in objtool/noreturns.h, where it rather misleadingly says "all functions":
/*
* This is a (sorted!) list of all known __noreturn functions in the kernel.
* ...
*/
nor in objtool/Documentation/objtool.txt:
"A noreturn function must be marked __noreturn in both its declaration and its definition, and must have a NORETURN() annotation in tools/objtool/noreturns.h."
Only the __dead_end_function() function comment in objtool/check.c and the implementation itself make this clear.
Thanks,
Thorsten