]> git.ipfire.org Git - thirdparty/linux.git/commit
objtool: Limit unreachable warnings to once per function
authorJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 18 Apr 2023 21:27:47 +0000 (14:27 -0700)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 16 May 2023 13:31:51 +0000 (06:31 -0700)
commit5e3992fe72748ed3892be876f09d4d990548b7af
tree4cac1dc96abdb6dfb12e3c646ddfc3e50aa5833f
parent89da5a69a831f20df6463fd524e1578e12a8f46f
objtool: Limit unreachable warnings to once per function

Unreachable instruction warnings are limited to once per object file.
That no longer makes sense for vmlinux validation, which might have
more unreachable instructions lurking in other places.  Change it to
once per function.

Note this affects some other (much rarer) non-fatal warnings as well.
In general I think one-warning-per-function makes sense, as related
warnings can accumulate quickly and we want to eventually get back to
failing the build with -Werror anyway.

Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Link: https://lore.kernel.org/r/9d38f881bfc34e031c74e4e90064ccb3e49f599a.1681853186.git.jpoimboe@kernel.org
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
tools/objtool/check.c
tools/objtool/include/objtool/elf.h
tools/objtool/include/objtool/warn.h