kconfig: Don't go out from read config loop when you read new symbol
authorNaohiro Aota <naota@elisp.net>
Thu, 30 Sep 2010 19:23:17 +0000 (04:23 +0900)
committerMichal Marek <mmarek@suse.cz>
Thu, 30 Sep 2010 19:59:32 +0000 (21:59 +0200)
commit8bea7548ee0223175bea5fddcc54af93bd252d9b
tree59bcfb7aeb795041bb9c8d34b80c767fd656230c
parent0455029bea7da2a2a92003238c9617a36d5d48fd
kconfig: Don't go out from read config loop when you read new symbol

commit 8baefd30b5b0101aa07aa75da44a9eee881eed28 of linux-next replaced
a `switch()' statement with some `if()' statements, but left `break's
in the `switch()' statement untouched. This cause read config loop to
exit and so "make oldconfig" is not much usable (see below).

> $ make oldconfig
><snip>
> scripts/kconfig/conf --oldconfig Kconfig
> #
> # using defaults found in /boot/config-2.6.34-ccs-r1
> #
> *
> * Restart config...
> *
> *
> * General setup
> *
> Prompt for development and/or incomplete code/drivers (EXPERIMENTAL) [N/y/?] (NEW)

(I've already have "CONFIG_EXPERIMENTAL=y" in the old config file. But
that's not read here.)

This patch should fix this problem.

Signed-off-by: Naohiro Aota <naota@elisp.net>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/kconfig/confdata.c