[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6814da67.050a0220.2f3283.cdc1@mx.google.com>
Date: Fri, 2 May 2025 07:44:53 -0700
From: Boqun Feng <boqun.feng@...il.com>
To: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Cc: linux-kernel@...r.kernel.org, llvm@...ts.linux.dev,
Peter Zijlstra <peterz@...radead.org>,
Ingo Molnar <mingo@...hat.com>, Will Deacon <will@...nel.org>,
Waiman Long <longman@...hat.com>,
Nathan Chancellor <nathan@...nel.org>,
Nick Desaulniers <nick.desaulniers+lkml@...il.com>,
Bill Wendling <morbo@...gle.com>,
Justin Stitt <justinstitt@...gle.com>
Subject: Re: [PATCH v1 1/1] lockdep: Move hlock_equal() to the respective
ifdeffery
Hi Andy,
On Fri, May 02, 2025 at 05:00:20PM +0300, Andy Shevchenko wrote:
> On Tue, Apr 15, 2025 at 11:58:56AM +0300, Andy Shevchenko wrote:
> > When hlock_equal() is unused, it prevents kernel builds with clang,
> > `make W=1` and CONFIG_WERROR=y, CONFIG_LOCKDEP=y and
> > CONFIG_LOCKDEP_SMALL=n:
> >
> > lockdep.c:2005:20: error: unused function 'hlock_equal' [-Werror,-Wunused-function]
> >
> > Fix this by moving the function to the respective existing ifdeffery
> > for its the only user.
> >
> > See also commit 6863f5643dd7 ("kbuild: allow Clang to find unused static
> > inline functions for W=1 build").
>
> Any news here, please? The problem still exists in v6.15-rc4.
>
This is in my radar, so it will be in a PR to tip soon. I didn't reply
earlier because I meant to find a whole cleanup for ifdefferies in
lockdep:
https://lore.kernel.org/lkml/Z46BJ8FhWCIXbM7p@boqun-archlinux/
to avoid whack-a-mole fixes. I never found time so I have to postpone
that. Thanks!
Regards,
Boqun
> --
> With Best Regards,
> Andy Shevchenko
>
>
Powered by blists - more mailing lists