提交 aa1c657c 编写于 作者: J Josh Poimboeuf 提交者: Zheng Zengkai

objtool: Don't fail the kernel build on fatal errors

stable inclusion
from stable-5.10.14
commit 9c8bb3eac07de8834d012e12ff0185a9dcc01331
bugzilla: 48051

--------------------------------

[ Upstream commit 655cf865 ]

This is basically a revert of commit 644592d3 ("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: NNick Desaulniers <ndesaulniers@google.com>
Reviewed-by: NMiroslav Benes <mbenes@suse.cz>
Reviewed-by: NNick Desaulniers <ndesaulniers@google.com>
Reviewed-by: NKamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Signed-off-by: NJosh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
上级 83bce0d7
...@@ -2921,14 +2921,10 @@ int check(struct objtool_file *file) ...@@ -2921,14 +2921,10 @@ int check(struct objtool_file *file)
warnings += ret; warnings += ret;
out: out:
if (ret < 0) { /*
/* * For now, don't fail the kernel build on fatal warnings. These
* Fatal error. The binary is corrupt or otherwise broken in * errors are still fairly common due to the growing matrix of
* some way, or objtool itself is broken. Fail the kernel * supported toolchains and their recent pace of change.
* build. */
*/
return ret;
}
return 0; return 0;
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册