Re: [PATCH v5 1/1] x86/cpu: Make sure flag_is_changeable_p() is always being used

From: Andy Shevchenko
Date: Fri Nov 08 2024 - 10:41:33 EST


On Fri, Nov 08, 2024 at 04:35:17PM +0100, H. Peter Anvin wrote:
> On November 8, 2024 4:30:10 PM GMT+01:00, Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> wrote:

> >See also commit 6863f5643dd7 ("kbuild: allow Clang to find unused static
> >inline functions for W=1 build").

^^^ (1)

> Looks good to me:
>
> Reviewed-by: H. Peter Anvin (Intel) <hpa@xxxxxxxxx>

Thank you!

> But another question: why the hell does clang complain about an unused static inline function?!

Does (1) shed a bit of light to this?

--
With Best Regards,
Andy Shevchenko