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

From: Linus Torvalds
Date: Mon Sep 06 2021 - 12:12:38 EST


On Mon, Sep 6, 2021 at 7:26 AM Guenter Roeck <linux@xxxxxxxxxxxx> wrote:
>
> Build results:
> total: 153 pass: 89 fail: 64

Well, that sadly proves the point of that patch. x86-64 may be clean,
because I have required it manually. Others not necessarily so much..

I've got at least one sparc64 fix in my inbox. It _might_ fix some
other cases too (syscall checking), but I suspect it's one of those
"death by a thousand cuts" situations, not just one or two issues that
show up.

Do you end up exposing the errors anywhere where I can take a look?

If some of them are just because of bad tooling on certain
architectures (ie fundamentally "this is unfixable, because we use
gcc-XYZ that just always causes warnings") then those we could/should
just disable -Werror for those and forget about them.

But hopefully most cases are just "people haven't cared enough" and
easily fixed.

Linus