Re: [PATCH 2/9] kconfig: fix restart for choice symbols

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Roman Zippel <[email protected]> wrote:
>
> 
> The restart check whether new symbols became visible, didn't always work 
> for choice symbols.
> 
> ...
> --- linux-2.6.orig/scripts/kconfig/conf.c	2005-11-03 13:19:34.000000000 +0100
> +++ linux-2.6/scripts/kconfig/conf.c	2005-11-03 13:22:59.000000000 +0100
> @@ -468,7 +468,8 @@ static void check_conf(struct menu *menu
>  
>  	sym = menu->sym;
>  	if (sym) {
> -		if (sym_is_changable(sym) && !sym_has_value(sym)) {
> +		if ((sym_is_changable(sym) || sym_is_choice(sym)) &&
> +		    !sym_has_value(sym)) {
>  			if (!conf_cnt++)
>  				printf(_("*\n* Restart config...\n*\n"));
>  			rootEntry = menu_get_parent_menu(menu);

This makes `make allmodconfig' go into an infinite loop.


USB Gadget Drivers
  Gadget Zero (DEVELOPMENT) (USB_ZERO) [M/n/?] m
  Ethernet Gadget (with CDC Ethernet support) (USB_ETH) [M/n/?] m
    RNDIS support (EXPERIMENTAL) (USB_ETH_RNDIS) [Y/n/?] y
  Gadget Filesystem (EXPERIMENTAL) (USB_GADGETFS) [M/n/?] m
  File-backed Storage Gadget (USB_FILE_STORAGE) [M/n/?] m
    File-backed Storage Gadget testing version (USB_FILE_STORAGE_TEST) [Y/n/?] y
  Serial Gadget (with CDC ACM support) (USB_G_SERIAL) [M/n/?] m
*
* Restart config...
*
*
* USB Gadget Support
*
Support for USB Gadgets (USB_GADGET) [M/n/y/?] m
  Debugging information files (USB_GADGET_DEBUG_FILES) [Y/n/?] y
USB Peripheral Controller
> 1. NetChip 2280 (USB_GADGET_NET2280)
  2. Toshiba TC86C001 'Goku-S' (USB_GADGET_GOKU) (NEW)
  3. Dummy HCD (DEVELOPMENT) (USB_GADGET_DUMMY_HCD) (NEW)
choice[1-3?]: 1
USB Gadget Drivers
  Gadget Zero (DEVELOPMENT) (USB_ZERO) [M/n/?] m
  Ethernet Gadget (with CDC Ethernet support) (USB_ETH) [M/n/?] m
    RNDIS support (EXPERIMENTAL) (USB_ETH_RNDIS) [Y/n/?] y
  Gadget Filesystem (EXPERIMENTAL) (USB_GADGETFS) [M/n/?] m
  File-backed Storage Gadget (USB_FILE_STORAGE) [M/n/?] m
    File-backed Storage Gadget testing version (USB_FILE_STORAGE_TEST) [Y/n/?] y
  Serial Gadget (with CDC ACM support) (USB_G_SERIAL) [M/n/?] m
*
* Restart config...
*
*
* USB Gadget Support
*
Support for USB Gadgets (USB_GADGET) [M/n/y/?] m
  Debugging information files (USB_GADGET_DEBUG_FILES) [Y/n/?] y
USB Peripheral Controller
> 1. NetChip 2280 (USB_GADGET_NET2280)
  2. Toshiba TC86C001 'Goku-S' (USB_GADGET_GOKU) (NEW)
  3. Dummy HCD (DEVELOPMENT) (USB_GADGET_DUMMY_HCD) (NEW)
choice[1-3?]: 1
USB Gadget Drivers
  Gadget Zero (DEVELOPMENT) (USB_ZERO) [M/n/?] m
  Ethernet Gadget (with CDC Ethernet support) (USB_ETH) [M/n/?] m
    RNDIS support (EXPERIMENTAL) (USB_ETH_RNDIS) [Y/n/?] y
  Gadget Filesystem (EXPERIMENTAL) (USB_GADGETFS) [M/n/?] m
  File-backed Storage Gadget (USB_FILE_STORAGE) [M/n/?] m
    File-backed Storage Gadget testing version (USB_FILE_STORAGE_TEST) [Y/n/?] y
  Serial Gadget (with CDC ACM support) (USB_G_SERIAL) [M/n/?] m
*
* Restart config...
*
*
* USB Gadget Support
*
Support for USB Gadgets (USB_GADGET) [M/n/y/?] m
  Debugging information files (USB_GADGET_DEBUG_FILES) [Y/n/?] y
USB Peripheral Controller
> 1. NetChip 2280 (USB_GADGET_NET2280)
  2. Toshiba TC86C001 'Goku-S' (USB_GADGET_GOKU) (NEW)
  3. Dummy HCD (DEVELOPMENT) (USB_GADGET_DUMMY_HCD) (NEW)
choice[1-3?]: 1
USB Gadget Drivers
  Gadget Zero (DEVELOPMENT) (USB_ZERO) [M/n/?] m
  Ethernet Gadget (with CDC Ethernet support) (USB_ETH) [M/n/?] m
    RNDIS support (EXPERIMENTAL) (USB_ETH_RNDIS) [Y/n/?] y
  Gadget Filesystem (EXPERIMENTAL) (USB_GADGETFS) [M/n/?] m
  File-backed Storage Gadget (USB_FILE_STORAGE) [M/n/?] m
    File-backed Storage Gadget testing version (USB_FILE_STORAGE_TEST) [Y/n/?] y
  Serial Gadget (with CDC ACM support) (USB_G_SERIAL) [M/n/?] m
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux