Re: [PATCH v2 6/6] kbuild: enable -Werror for hostprogs
From: Askar Safin
Date: Sat Oct 04 2025 - 21:11:17 EST
"Thomas Weißschuh" <thomas.weissschuh@xxxxxxxxxxxxx>:
> Enable -Werror unconditionally
Please, drop this patch.
Never enable -Werror unconditionally for any part of build.
I often bisect Linux. And to do this, I often need to build very old
Linux commits (with modern compiler). Unconditional -Werror will make
this impossible.
For example, recently I found this regression:
https://lore.kernel.org/regressions/197f290e30b.eaadc7bc7913.7315623184036672946@xxxxxxxxxxxx/T/#u
The regression caused by commits happened in 2019.
So to bisect it, I had to build 2019 trees using modern compiler.
--
Askar Safin