summaryrefslogtreecommitdiffstats
path: root/scripts/Makefile.package
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2023-11-06 03:10:47 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2023-11-28 11:22:50 +0900
commitce1fc9345a59c55d3a46dd7da872791cae41324e (patch)
tree806fd050b7452f348094e6da1a209294e0e53698 /scripts/Makefile.package
parent96a29581e735bcf3b4e5a4f2daad9f445025f510 (diff)
downloadlinux-stable-ce1fc9345a59c55d3a46dd7da872791cae41324e.tar.gz
linux-stable-ce1fc9345a59c55d3a46dd7da872791cae41324e.tar.bz2
linux-stable-ce1fc9345a59c55d3a46dd7da872791cae41324e.zip
kconfig: do not clear SYMBOL_DEF_USER when the value is out of range
When a user-supplied value is out of range, (NEW) and an incorrect default value are shown. [Test Kconfig] config FOO int "foo" range 10 20 [Test .config] CONFIG_FOO=30 [Result without this fix] $ make config * * Main menu * foo (FOO) [10] (NEW) [Result with this fix] $ make config * * Main menu * foo (FOO) [20] Currently, the SYMBOL_DEF_USER is cleared if the user input does not reside within the range. Kconfig forgets the initial value 30, and prints (NEW) and an incorrect default [10]. Kconfig should remember the user's input. The default should be [20] because the user's input, 30, is closer to the upper limit of the range. Please note it will not show up in "make oldconfig" because it is no longer considered as a new symbol. It also fixes the inconsistent behavior in listnewconfig/helpnewconfig. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/Makefile.package')
0 files changed, 0 insertions, 0 deletions