kconfig: oldconfig shall not set symbols if it does not need to
authorRoman Zippel <zippel@linux-m68k.org>
Thu, 30 Aug 2007 03:06:17 +0000 (05:06 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Sat, 1 Sep 2007 06:24:09 +0000 (08:24 +0200)
commitf82f3f9422d4da1eeec6f6cf3e64c6c34c4fe19b
tree86031882adb1561400beea484711e5952142d484
parent2f81eccbd7a5440b43ff874c8f02d6143f41ba4f
kconfig: oldconfig shall not set symbols if it does not need to

Avoid setting the value if the symbol doesn't need to be changed or can't
be changed. Later choices may change the dependencies and thus the
possible input range.

make oldconfig from a 2.6.22 .config with CONFIG_HOTPLUG_CPU not set
was in some configurations setting CONFIG_HOTPLUG_CPU=y without asking,
even when there was no actual requirement for CONFIG_HOTPLUG_CPU.
This was triggered by SUSPEND_SMP that does a select HOTPLUG_CPU.

Signed-off-by: Roman Zippel <zippel@linux-m68k.org>
Tested-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/kconfig/conf.c