Re: [GIT PULL] Kbuild updates for v6.16-rc1
From: Heiko Carstens
Date: Thu Jun 12 2025 - 04:03:26 EST
On Thu, Jun 12, 2025 at 10:42:40AM +0900, Masahiro Yamada wrote:
> On Wed, Jun 11, 2025 at 11:24 PM Arnd Bergmann <arnd@xxxxxxxx> wrote:
> > I think this makes sense in general, but the output here is
> > excessive if it leads to users no longer wanting to enable W=1.
> >
> > There are other warnings that I think should be enabled at the
> > W=1 level (e.g. -Wformat-security) and eventually by default,
> > but that are still too noisy at that level.
> >
> > My own cutoff would be at a few hundred warnings in allmodconfig
> > builds if there is an effort to reduce it further, but it seems
> > that this one is still at a few thousand, which does not seem ok.
> >
> > Arnd
>
> Then, what to do? Downgrade to W=2?
>
> I think nobody cares about W=2 builds,
> and the problem of all C files including <linux/export.h>
> would remain forever.
For example you could provide a method to opt-out, similar to
RECORDMCOUNT_WARN, except that the default would be enabled.
This option would go away in the (near?) future again, as soon
as everything has been addressed.