Re: [PATCH v2 6/6] kbuild: enable -Werror for hostprogs
From: Nathan Chancellor
Date: Thu Aug 14 2025 - 14:30:34 EST
On Thu, Aug 14, 2025 at 02:10:13PM +0200, Nicolas Schier wrote:
> On Thu, Aug 14, 2025 at 12:14:46PM +0200, Thomas Weißschuh wrote:
> > The hostprog compilers and linkers do not share the regular compiler flags,
> > so they are not affected by CONFIG_WERROR or W=e. As hostprogs are used
> > during the bootstrap of the build, they can't depend on kconfig options.
> >
> > Enable -Werror unconditionally.
> >
> > Signed-off-by: Thomas Weißschuh <thomas.weissschuh@xxxxxxxxxxxxx>
> >
> > ---
> > For testing in -next, as discussed in
> > https://lore.kernel.org/lkml/20250812-kbuild-werror-v1-2-36c9ff653700@xxxxxxxxxxxxx/
>
> yeah, I am not sure if this is a good change, but I am ok with testing
> it in next, as Nathan suggested.
Yeah, I will leave this as the top patch in kbuild-next for now so that
we can easily back out if it is disruptive.
> For the rest of the series:
>
> Reviewed-by: Nicolas Schier <nsc@xxxxxxxxxx>
I applied this tag to patches 1 through 5 and left it off of this one,
based on "for the rest of the series". Let me know if that was
unintentional.
Cheers,
Nathan