Skip to content

Commit 655cf86

Browse files
committed
objtool: Don't fail the kernel build on fatal errors
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 <[email protected]> Reviewed-by: Miroslav Benes <[email protected]> Reviewed-by: Nick Desaulniers <[email protected]> Reviewed-by: Kamalesh Babulal <[email protected]> Signed-off-by: Josh Poimboeuf <[email protected]>
1 parent a2e38df commit 655cf86

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

tools/objtool/check.c

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

29302930
out:
2931-
if (ret < 0) {
2932-
/*
2933-
* Fatal error. The binary is corrupt or otherwise broken in
2934-
* some way, or objtool itself is broken. Fail the kernel
2935-
* build.
2936-
*/
2937-
return ret;
2938-
}
2939-
2931+
/*
2932+
* For now, don't fail the kernel build on fatal warnings. These
2933+
* errors are still fairly common due to the growing matrix of
2934+
* supported toolchains and their recent pace of change.
2935+
*/
29402936
return 0;
29412937
}

0 commit comments

Comments
 (0)