]> git.ipfire.org Git - thirdparty/linux.git/commit
objtool: Detect missing __noreturn annotations
authorJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 18 Apr 2023 21:27:50 +0000 (14:27 -0700)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 16 May 2023 13:31:53 +0000 (06:31 -0700)
commitfedb724c3db5490234ddde0103811c28c2fedae0
treeb3d61b25d2c2ba469a84f4aa2abc08270e2a42f5
parentced23d2e3762ecfb859ae65d3a351218edff7205
objtool: Detect missing __noreturn annotations

Most "unreachable instruction" warnings these days seem to actually be
the result of a missing __noreturn annotation.  Add an explicit check
for that.

Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Link: https://lore.kernel.org/r/6e2b93d8c65eaed6c4166a358269dc0ef01f890c.1681853186.git.jpoimboe@kernel.org
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
tools/objtool/Documentation/objtool.txt
tools/objtool/check.c