kconfig: add optional warnings for changed input valuesWhen reading .config input, Kconfig stores user-provided values firstand then resolves the final value after applying dependencies, ranges,a
kconfig: add optional warnings for changed input valuesWhen reading .config input, Kconfig stores user-provided values firstand then resolves the final value after applying dependencies, ranges,and other constraints.If the final value differs from the user input, Kconfig already tracksthat state internally, but it does not provide a focused diagnostic toshow which explicit inputs were adjusted. This is particularly confusingfor requested values that get forced down by unmet dependencies orclamped by ranges.Add an opt-in diagnostic controlled by KCONFIG_WARN_CHANGED_INPUT. Emitthe warnings from conf_write() and conf_write_defconfig() after valueresolution. Print the diagnostic to stderr directly, not through thenormal message callback, so it remains visible when conf is run with -s,such as from make -s.Keep the diagnostic out of the conf_message() formatting buffer so longwarning lists are not truncated, and mark processed symbols as writtenbefore the SYMBOL_WRITE check so duplicate menu nodes cannot emitduplicate warnings.Document the new environment variable and add tests for olddefconfig,savedefconfig, and the silent-conf path.Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>Tested-by: Julian Braha <julianbraha@gmail.com>Link: https://patch.msgid.link/20260611060000.23858-1-pengpeng@iscas.ac.cnSigned-off-by: Nathan Chancellor <nathan@kernel.org>
show more ...