Re: [PATCH] Revert "Enable '-Werror' by default for all kernel builds"

From
Segher Boessenkool <hidden>
Date
2021-09-07 22:50:44
Also in
linux-kbuild, linux-security-module, lkml, llvm
Reply to
Marco Elver, 2021-09-07
On Wed, Sep 08, 2021 at 12:14:19AM +0200, Marco Elver wrote:
Here's a datapoint: I had to disable CONFIG_WERROR on a bunch of syzbot
instances which started failing because of -Werror [1], because syzbot's
time is better spent on fuzzing, and having the odd warning in some
subsystem penalize fuzzing of the entire kernel is not appropriate.
Similarly, I have to disable -Werror (which various archs and subsystems
already use) whenever I test building the kernel with new toolchains.
It is the biggest set of kernel patches I keep, already, since many
years.

I actually have good hopes that a centralised -Werror thing will make
this easier :-)

Maybe there can be an E=[01] kernel build flag to disable / enable
CONFIG_WERROR?  Something that will override it for just that command.
This would make life easier for many use cases, while at the same time
not being something that people can "forget" they did.


Segher
Thread (19 messages) 19 messages, 13 authors, last reply 2021-09-20
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help