Re: [PATCH v2] kconfig: warn about malformed KCONFIG_PROBABILITY values
From: Julian Braha
Date: Thu Sep 10 2026 - 07:30:19 EST
On 9/10/26 10:13, Dmitrii Tulnov wrote:
> Hi Julian,
>
> Thanks for the review. I've addressed your comments locally for v3.
> Before sending it, I'd like to clarify how the new warning should
> interact with KCONFIG_WERROR.
>
> With KCONFIG_PROBABILITY=50% and KCONFIG_WERROR=1, v2 and my current
> v3 still exit successfully and write .config. The warning is printed
> directly and does not go through the existing warning/error handling.
>
> Would you prefer it to become an error when KCONFIG_WERROR is set,
> while remaining a warning otherwise, or to stay non-fatal even in
> that mode during the compatibility period? I'd lean toward honoring
> the explicit strict mode.
Yes, better to support it. Thanks!
>
> For the compatibility tests, I propose comparing the generated
> configurations for 50% versus 50:0:0 and -0 versus 0 with the same
> seed, and checking that the malformed input produces exactly one
> warning. That would put checks for the preserved interpretation in
> the submitted tests, in addition to the local comparisons I've run.
> Does that sound appropriate for this patch?
>
Yeah that's fine.
> Best regards,
> Dmitrii