[Devel] [PATCH hci-8.1 v2] configs: build with WERROR and KVM_WERROR, as RHEL does

no-reply at sashiko.virtuozzo.com no-reply at sashiko.virtuozzo.com
Tue Oct 27 18:11:55 MSK 2026


> RHEL generates its configs in "make dist-srpm": the redhat/Makefile
> dist-* targets export ENABLE_WERROR=1, and build_configs.sh then turns
> CONFIG_WERROR, CONFIG_KVM_WERROR and CONFIG_OBJTOOL_WERROR on in every
> config.
> 
> We call build_configs.sh directly, without ENABLE_WERROR, so the vz
> kernel builds without -Werror and a new warning goes unnoticed.
> 
> We already have CONFIG_OBJTOOL_WERROR=y due to work on KLP, so set
> CONFIG_WERROR and CONFIG_KVM_WERROR in custom-overrides/generic as well.
> Like ENABLE_WERROR, they reach every flavor, the debug one included.
> 
> The um variant, the User Mode Linux KUnit kernel, does not build with
> -Werror yet, so custom-overrides/generic/um/CONFIG_WERROR keeps it off
> there.
> 
> https://virtuozzo.atlassian.net/browse/VSTOR-151903
> 
> Feature: internal
> Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>

Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261027-b4-prep-khorenko-vstor-151903-werror-v2-1-b77e17cc3b3d@virtuozzo.com?part=1




More information about the Devel mailing list