Skip to content

Commit 9c8bb3e

Browse files
jpoimboegregkh
authored andcommitted
objtool: Don't fail the kernel build on fatal errors
[ Upstream commit 655cf86 ] This is basically a revert of commit 644592d ("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>
1 parent 4587cb6 commit 9c8bb3e

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

‎tools/objtool/check.c‎

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2921,14 +2921,10 @@ int check(struct objtool_file *file)
29212921
warnings += ret;
29222922

29232923
out:
2924-
if (ret < 0) {
2925-
/*
2926-
* Fatal error. The binary is corrupt or otherwise broken in
2927-
* some way, or objtool itself is broken. Fail the kernel
2928-
* build.
2929-
*/
2930-
return ret;
2931-
}
2932-
2924+
/*
2925+
* For now, don't fail the kernel build on fatal warnings. These
2926+
* errors are still fairly common due to the growing matrix of
2927+
* supported toolchains and their recent pace of change.
2928+
*/
29332929
return 0;
29342930
}

0 commit comments

Comments
 (0)