Re: [PATCH v2 6/6] kbuild: enable -Werror for hostprogs
From: Nathan Chancellor
Date: Mon Oct 06 2025 - 17:48:52 EST
On Mon, Oct 06, 2025 at 01:27:33PM +0200, Miguel Ojeda wrote:
> On Sun, Oct 5, 2025 at 10:53 PM Nathan Chancellor <nathan@xxxxxxxxxx> wrote:
> >
> > Thomas and Nicolas, thoughts?
>
> I think it would be good to eventually split the hostprog flags into 2
> sets: the ones that are used for bootstrapping, and the ones that go
> after that.
>
> That way, we can get the best of both worlds, if I understand correctly.
Does that buy us much? We would not want -Werror applied to
scripts/basic or scripts/kconfig without consent from the user. W=e
could provide that at that stage of the build (with an adjustment of
where scripts/Makefile.extrawarn was included) but CONFIG_WERROR would
not be.
Given how frequently fixdep and kconfig are built, I am fairly confident
that new warnings wtihin them would be reported quickly, even without
-Werror, so I do not see it as too much of a loss. All other host
programs should be covered by that diff.
It may still be worth doing for other reasons but I would have to see
what such a change would actually look like in practice before
committing to it.
Cheers,
Nathan