]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit460908152088552b5d77c393179ad838ba90d18a
tree86031882adb1561400beea484711e5952142d484
parent91880134d74b76423a1c0b9d43aee4cbb613a07a
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