Re: [GIT PULL] locking changes for v5.18

From: Sebastian Andrzej Siewior
Date: Wed Mar 23 2022 - 03:11:17 EST


On 2022-03-22 15:58:47 [-0700], Linus Torvalds wrote:
> On Tue, Mar 22, 2022 at 3:20 PM Borislav Petkov <bp@xxxxxxxxx> wrote:
> >
> > Ah, you say build error because you have CONFIG_WERROR=y.
>
> EVERYBODY should have CONFIG_WERROR=y on at least x86-64 and other
> serious architectures, unless you have some completely random
> experimental (and broken) compiler.

I haven't seen it in my builds but it was reported earlier with a patch
https://lkml.kernel.org/r/20220215184322.440969-1-nathan@xxxxxxxxxx

which is sitting in Andrew's. I'm not completely satisfied with this
__maybe_unused, let me try to get clang and maybe I can figure something
else out.

> Linus

Sebastian