Re: [PATCH v2 6/6] kbuild: enable -Werror for hostprogs
From: Thomas Weißschuh
Date: Mon Oct 06 2025 - 06:20:36 EST
On Sun, Oct 05, 2025 at 01:53:35PM -0700, Nathan Chancellor wrote:
(...)
> In looking further into this, I noticed that in its current state,
> -Werror is not getting applied to scripts/basic/fixup or
> scripts/kconfig/*.o files (seems $(include-y) happens to late?), which
> was one of the reasons to avoid making it depend on CONFIG_WERROR or
> W=e. If that's the case, we could probably make it opt in like the rest
> of the warnings for the kernel, which should be a fair compromise
> between wanting to make potential issues more obvious while not
> impacting people who build old sources with new compilers.
>
> Thomas and Nicolas, thoughts?
Yeah, fixdep and script/kconfig seem to be specifically handled in the
'ifdef config-build' block in Makefile. And this happens explicitly
before 'include .../auto.conf'. So your diff below looks like the
correct solution. Thanks for taking a look!
Thomas