[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aHGMkczXH3zxugmD@tardis-2.local>
Date: Fri, 11 Jul 2025 15:13:37 -0700
From: Boqun Feng <boqun.feng@...il.com>
To: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Cc: Arnd Bergmann <arnd@...nel.org>, Peter Zijlstra <peterz@...radead.org>,
Ingo Molnar <mingo@...hat.com>, Will Deacon <will@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>,
Arnd Bergmann <arnd@...db.de>, Waiman Long <longman@...hat.com>,
Carlos Llamas <cmllamas@...gle.com>,
Ying Huang <huang.ying.caritas@...il.com>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 06/10] [RESEND] lockdep: change 'static const' variables
to enum values
On Fri, May 02, 2025 at 05:02:54PM +0300, Andy Shevchenko wrote:
> On Wed, Apr 09, 2025 at 02:22:58PM +0200, Arnd Bergmann wrote:
> > From: Arnd Bergmann <arnd@...db.de>
> >
> > gcc warns about 'static const' variables even in headers when building
> > with -Wunused-const-variables enabled:
> >
> > In file included from kernel/locking/lockdep_proc.c:25:
> > kernel/locking/lockdep_internals.h:69:28: error: 'LOCKF_USED_IN_IRQ_READ' defined but not used [-Werror=unused-const-variable=]
> > 69 | static const unsigned long LOCKF_USED_IN_IRQ_READ =
> > | ^~~~~~~~~~~~~~~~~~~~~~
> > kernel/locking/lockdep_internals.h:63:28: error: 'LOCKF_ENABLED_IRQ_READ' defined but not used [-Werror=unused-const-variable=]
> > 63 | static const unsigned long LOCKF_ENABLED_IRQ_READ =
> > | ^~~~~~~~~~~~~~~~~~~~~~
> > kernel/locking/lockdep_internals.h:57:28: error: 'LOCKF_USED_IN_IRQ' defined but not used [-Werror=unused-const-variable=]
> > 57 | static const unsigned long LOCKF_USED_IN_IRQ =
> > | ^~~~~~~~~~~~~~~~~
> > kernel/locking/lockdep_internals.h:51:28: error: 'LOCKF_ENABLED_IRQ' defined but not used [-Werror=unused-const-variable=]
> > 51 | static const unsigned long LOCKF_ENABLED_IRQ =
> > | ^~~~~~~~~~~~~~~~~
> >
> > This one is easy to avoid by changing the generated constant definition
> > into an equivalent enum.
>
> Any news here, please? The problem still exists in v6.15-rc4.
>
Queued for v6.17, thanks!
Regards,
Boqun
> --
> With Best Regards,
> Andy Shevchenko
>
>
Powered by blists - more mailing lists