objtool: Don't fail the kernel build on fatal errors
authorJosh Poimboeuf <jpoimboe@redhat.com>
Thu, 14 Jan 2021 22:32:42 +0000 (16:32 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 7 Feb 2021 14:37:17 +0000 (15:37 +0100)
commit9c8bb3eac07de8834d012e12ff0185a9dcc01331
tree47be55776975f9af3bd6127dfc503584405d56ce
parent4587cb6f27a6f3518aa5195e6a2676ac02dac5aa
objtool: Don't fail the kernel build on fatal errors

[ Upstream commit 655cf86548a3938538642a6df27dd359e13c86bd ]

This is basically a revert of commit 644592d32837 ("objtool: Fail the
kernel build on fatal errors").

That change turned out to be more trouble than it's worth.  Failing the
build is an extreme measure which sometimes gets too much attention and
blocks CI build testing.

These fatal-type warnings aren't yet as rare as we'd hope, due to the
ever-increasing matrix of supported toolchains/plugins and their
fast-changing nature as of late.

Also, there are more people (and bots) looking for objtool warnings than
ever before, so even non-fatal warnings aren't likely to be ignored for
long.

Suggested-by: Nick Desaulniers <ndesaulniers@google.com>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Reviewed-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/objtool/check.c