]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kconfig: oldconfig shall not set symbols if it does not need to
authorRoman Zippel <zippel@linux-m68k.org>
Sat, 1 Sep 2007 06:29:40 +0000 (08:29 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 26 Sep 2007 17:54:37 +0000 (10:54 -0700)
commitbf3bc19248f00e6939a37e2d5bddde48505e0dda
tree404eeda69a839e3470e9bd06dc943bbaacb49fc9
parent05d1e31ad2d5e3b6c20c0d9d63d511f0d89e4b3f
kconfig: oldconfig shall not set symbols if it does not need to

commit f82f3f9422d4da1eeec6f6cf3e64c6c34c4fe19b in mainline.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
scripts/kconfig/conf.c