linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 2.5.69-bk1[23] kconfig loop
@ 2003-05-19 18:21 Adam J. Richter
  2003-05-19 18:45 ` Danny ter Haar
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Adam J. Richter @ 2003-05-19 18:21 UTC (permalink / raw)
  To: linux-kernel

        If I run "make oldconfig" under linux-2.5.69-bk12
and select "m" for CONFIG_USB_GADGET, I am asked a question
or two about USB gadget interfaces that I might want, and
then the build process gets into an infinite loop.  If I set
CONFIG_USB_GADGET to "n", then everything is fine.

        I expect there is no input that is supposed to cause
"make oldconfig" to go into an infinite loop, so this must at
least be a kconfig bug.  Here is a transcript of the interation
that leads to the infinite loop:


Support for USB Gadgets (USB_GADGET) [N/m/y/?] (NEW) m
  USB Peripheral Controller Support
    NetChip 2280 USB Peripheral Controller (USB_NET2280) [N/m/?] (NEW) m
  USB Gadget Drivers
    Gadget Zero (DEVELOPMENT) (USB_ZERO) [N/m/?] (NEW) m
    Ethernet Gadget (USB_ETH) [N/m/?] (NEW) m
[Infinite loop starts here.  The following lines repeat forever,
non-interactively.  They just go scrolling by.]
*
* Restart config...
*
*
* Support for USB Gadgets
*
Support for USB Gadgets (USB_GADGET) [M/n/y/?] m
  USB Peripheral Controller Support
    NetChip 2280 USB Peripheral Controller (USB_NET2280) [M/n/?] m
  USB Gadget Drivers
    Gadget Zero (DEVELOPMENT) (USB_ZERO) [M/n/?] m
make: *** [oldconfig] Interrupt


Adam J. Richter     __     ______________   575 Oroville Road
adam@yggdrasil.com     \ /                  Miplitas, California 95035
+1 408 309-6081         | g g d r a s i l   United States of America
                         "Free Software For The Rest Of Us."

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: 2.5.69-bk1[23] kconfig loop
  2003-05-19 18:21 2.5.69-bk1[23] kconfig loop Adam J. Richter
@ 2003-05-19 18:45 ` Danny ter Haar
  2003-05-19 18:58 ` Eli Carter
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 11+ messages in thread
From: Danny ter Haar @ 2003-05-19 18:45 UTC (permalink / raw)
  To: linux-kernel

Adam J. Richter <adam@yggdrasil.com> wrote:
>If I run "make oldconfig" under linux-2.5.69-bk12
>and select "m" for CONFIG_USB_GADGET, I am asked a question
>or two about USB gadget interfaces that I might want, and
>then the build process gets into an infinite loop.  If I set
>CONFIG_USB_GADGET to "n", then everything is fine.

Same for -mm6 & -mm7 ;-)

Danny

-- 
Miguel   | "I can't tell if I have worked all my life or if
de Icaza |  I have never worked a single day of my life,"


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: 2.5.69-bk1[23] kconfig loop
  2003-05-19 18:21 2.5.69-bk1[23] kconfig loop Adam J. Richter
  2003-05-19 18:45 ` Danny ter Haar
@ 2003-05-19 18:58 ` Eli Carter
  2003-05-19 21:15 ` Roman Zippel
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 11+ messages in thread
From: Eli Carter @ 2003-05-19 18:58 UTC (permalink / raw)
  To: Adam J. Richter; +Cc: linux-kernel

Adam J. Richter wrote:
>         If I run "make oldconfig" under linux-2.5.69-bk12
> and select "m" for CONFIG_USB_GADGET, I am asked a question
> or two about USB gadget interfaces that I might want, and
> then the build process gets into an infinite loop.  If I set
> CONFIG_USB_GADGET to "n", then everything is fine.
> 
>         I expect there is no input that is supposed to cause
> "make oldconfig" to go into an infinite loop, so this must at
> least be a kconfig bug.  Here is a transcript of the interation
> that leads to the infinite loop:
> 
> 
> Support for USB Gadgets (USB_GADGET) [N/m/y/?] (NEW) m
>   USB Peripheral Controller Support
>     NetChip 2280 USB Peripheral Controller (USB_NET2280) [N/m/?] (NEW) m
>   USB Gadget Drivers
>     Gadget Zero (DEVELOPMENT) (USB_ZERO) [N/m/?] (NEW) m
>     Ethernet Gadget (USB_ETH) [N/m/?] (NEW) m
> [Infinite loop starts here.  The following lines repeat forever,
> non-interactively.  They just go scrolling by.]
> *
> * Restart config...
> *
> *
> * Support for USB Gadgets
> *
> Support for USB Gadgets (USB_GADGET) [M/n/y/?] m
>   USB Peripheral Controller Support
>     NetChip 2280 USB Peripheral Controller (USB_NET2280) [M/n/?] m
>   USB Gadget Drivers
>     Gadget Zero (DEVELOPMENT) (USB_ZERO) [M/n/?] m
> make: *** [oldconfig] Interrupt

I've seen this happen when no options within a 'choice' construct are 
active.  (i.e., they all depend on something that isn't true.)

HTH,

Eli
--------------------. "If it ain't broke now,
Eli Carter           \                  it will be soon." -- crypto-gram
eli.carter(a)inet.com `-------------------------------------------------


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: 2.5.69-bk1[23] kconfig loop
  2003-05-19 18:21 2.5.69-bk1[23] kconfig loop Adam J. Richter
  2003-05-19 18:45 ` Danny ter Haar
  2003-05-19 18:58 ` Eli Carter
@ 2003-05-19 21:15 ` Roman Zippel
  2003-05-20  2:38 ` DHCP Gerald Stuhrberg
  2003-05-20  2:46 ` DHCP Gerald Stuhrberg
  4 siblings, 0 replies; 11+ messages in thread
From: Roman Zippel @ 2003-05-19 21:15 UTC (permalink / raw)
  To: Adam J. Richter; +Cc: linux-kernel

Hi,

On Mon, 19 May 2003, Adam J. Richter wrote:

>         I expect there is no input that is supposed to cause
> "make oldconfig" to go into an infinite loop, so this must at
> least be a kconfig bug.

Yes, it is, conf should not restart the configuration if the symbol isn't 
changeable. The patch below fixes this and also fixes another possible 
problem with menuconfig.

bye, Roman

--- linux-2.5.69-bk13/scripts/kconfig/conf.c	16 Dec 2002 19:40:13 -0000
+++ linux-2.5.69-bk13/scripts/kconfig/conf.c	19 May 2003 20:36:28 -0000
@@ -456,29 +456,17 @@ static void check_conf(struct menu *menu
 		return;
 
 	sym = menu->sym;
-	if (!sym)
-		goto conf_childs;
-
-	if (sym_is_choice(sym)) {
-		if (!sym_has_value(sym)) {
+	if (sym) {
+		if (sym_is_changable(sym) && !sym_has_value(sym)) {
 			if (!conf_cnt++)
 				printf("*\n* Restart config...\n*\n");
 			rootEntry = menu_get_parent_menu(menu);
 			conf(rootEntry);
 		}
-		if (sym_get_tristate_value(sym) != mod)
+		if (sym_is_choice(sym) && sym_get_tristate_value(sym) != mod)
 			return;
-		goto conf_childs;
-	}
-
-	if (!sym_has_value(sym)) {
-		if (!conf_cnt++)
-			printf("*\n* Restart config...\n*\n");
-		rootEntry = menu_get_parent_menu(menu);
-		conf(rootEntry);
 	}
 
-conf_childs:
 	for (child = menu->list; child; child = child->next)
 		check_conf(child);
 }
--- linux-2.5.69-bk13/scripts/kconfig/menu.c	17 Mar 2003 23:01:29 -0000
+++ linux-2.5.69-bk13/scripts/kconfig/menu.c	18 May 2003 22:27:39 -0000
@@ -283,8 +283,7 @@ struct menu *menu_get_parent_menu(struct
 {
 	enum prop_type type;
 
-	while (menu != &rootmenu) {
-		menu = menu->parent;
+	for (; menu != &rootmenu; menu = menu->parent) {
 		type = menu->prompt ? menu->prompt->type : 0;
 		if (type == P_MENU || type == P_ROOTMENU)
 			break;



^ permalink raw reply	[flat|nested] 11+ messages in thread

* DHCP
  2003-05-19 18:21 2.5.69-bk1[23] kconfig loop Adam J. Richter
                   ` (2 preceding siblings ...)
  2003-05-19 21:15 ` Roman Zippel
@ 2003-05-20  2:38 ` Gerald Stuhrberg
  2003-05-20  2:46 ` DHCP Gerald Stuhrberg
  4 siblings, 0 replies; 11+ messages in thread
From: Gerald Stuhrberg @ 2003-05-20  2:38 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 345 bytes --]

I was just wondering if anyone had plans to implement a DHCP client in
the kernel.Something that would listen for an ip that could be loaded as
a module. --Just an idea-- Im not an experienced C programmer but would
like to mess with this idea. If anyone has any ideas for more info
please email them to me.

Thanks
-Gerald Stuhrberg-


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* DHCP
  2003-05-19 18:21 2.5.69-bk1[23] kconfig loop Adam J. Richter
                   ` (3 preceding siblings ...)
  2003-05-20  2:38 ` DHCP Gerald Stuhrberg
@ 2003-05-20  2:46 ` Gerald Stuhrberg
  2003-05-20  2:54   ` DHCP William Lee Irwin III
  2003-05-20 16:48   ` DHCP Bryan O'Sullivan
  4 siblings, 2 replies; 11+ messages in thread
From: Gerald Stuhrberg @ 2003-05-20  2:46 UTC (permalink / raw)
  To: linux-kernel

I was just wondering if anyone had plans to implement a DHCP client in
the kernel.Something that would listen for an ip that could be loaded as
a module. --Just an idea-- Im not an experienced C programmer but would
like to mess with this idea. If anyone has any ideas for more info
please email them to me.

Thanks
-Gerald Stuhrberg-



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: DHCP
  2003-05-20  2:46 ` DHCP Gerald Stuhrberg
@ 2003-05-20  2:54   ` William Lee Irwin III
  2003-05-20 16:48   ` DHCP Bryan O'Sullivan
  1 sibling, 0 replies; 11+ messages in thread
From: William Lee Irwin III @ 2003-05-20  2:54 UTC (permalink / raw)
  To: Gerald Stuhrberg; +Cc: linux-kernel

On Mon, May 19, 2003 at 10:46:07PM -0400, Gerald Stuhrberg wrote:
> I was just wondering if anyone had plans to implement a DHCP client in
> the kernel.Something that would listen for an ip that could be loaded as
> a module. --Just an idea-- Im not an experienced C programmer but would
> like to mess with this idea. If anyone has any ideas for more info
> please email them to me.

This is what early userspace is supposed to be for. IIRC there is a
stripped down dhcp client for booting off an nfsroot already there.


-- wli

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: DHCP
  2003-05-20  2:46 ` DHCP Gerald Stuhrberg
  2003-05-20  2:54   ` DHCP William Lee Irwin III
@ 2003-05-20 16:48   ` Bryan O'Sullivan
  2003-05-20 17:19     ` DHCP Richard B. Johnson
  1 sibling, 1 reply; 11+ messages in thread
From: Bryan O'Sullivan @ 2003-05-20 16:48 UTC (permalink / raw)
  To: Gerald Stuhrberg; +Cc: linux-kernel

On Mon, 2003-05-19 at 19:46, Gerald Stuhrberg wrote:
> I was just wondering if anyone had plans to implement a DHCP client in
> the kernel.

There's already one there.  The plan is to rip it out.

	<b


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: DHCP
  2003-05-20 16:48   ` DHCP Bryan O'Sullivan
@ 2003-05-20 17:19     ` Richard B. Johnson
  2003-05-20 18:39       ` DHCP Bryan O'Sullivan
  0 siblings, 1 reply; 11+ messages in thread
From: Richard B. Johnson @ 2003-05-20 17:19 UTC (permalink / raw)
  To: Bryan O'Sullivan; +Cc: Gerald Stuhrberg, linux-kernel

On Tue, 20 May 2003, Bryan O'Sullivan wrote:

> On Mon, 2003-05-19 at 19:46, Gerald Stuhrberg wrote:
> > I was just wondering if anyone had plans to implement a DHCP client in
> > the kernel.
>
> There's already one there.  The plan is to rip it out.
>
> 	<b

Isn't it that there are 'helper' functions in the kernel that are
not needed and a user-space DHCP server already works and is
available? Read LinuxPlanet(tm). There may be a DHCP server
in many/most distributions.


Cheers,
Dick Johnson
Penguin : Linux version 2.4.20 on an i686 machine (797.90 BogoMips).
Why is the government concerned about the lunatic fringe? Think about it.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: DHCP
  2003-05-20 17:19     ` DHCP Richard B. Johnson
@ 2003-05-20 18:39       ` Bryan O'Sullivan
  0 siblings, 0 replies; 11+ messages in thread
From: Bryan O'Sullivan @ 2003-05-20 18:39 UTC (permalink / raw)
  To: root; +Cc: Gerald Stuhrberg, linux-kernel

On Tue, 2003-05-20 at 10:19, Richard B. Johnson wrote:

> Isn't it that there are 'helper' functions in the kernel that are
> not needed and a user-space DHCP server already works and is
> available?

The original question was about an in-kernel DHCP client, which exists
in the form of net/ipv4/ipconfig.c.  The vague plan of record is to
remove it from the kernel some time early in the 2.6 era, and replace it
with a userspace ipconfig implementation that runs in initramfs.

Note the complete lack of mention of DHCP servers.

	<b


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: 2.5.69-bk1[23] kconfig loop
@ 2003-05-21 16:44 Adam J. Richter
  0 siblings, 0 replies; 11+ messages in thread
From: Adam J. Richter @ 2003-05-21 16:44 UTC (permalink / raw)
  To: zippel; +Cc: linux-kernel

On Mon, 19 May 2003, Roman Zippel wrote:
>On Mon, 19 May 2003, Adam J. Richter wrote:

>>         I expect there is no input that is supposed to cause
>> "make oldconfig" to go into an infinite loop, so this must at
>> least be a kconfig bug.

>Yes, it is, conf should not restart the configuration if the symbol isn't 
>changeable. The patch below fixes this and also fixes another possible 
>problem with menuconfig.
[...]

	Your patch fixed my problem.  Thanks!  I hope you will
send it or someting similar on its way to Linus.  If there is any
further testing you want me to do, please let me know.

Adam J. Richter     __     ______________   575 Oroville Road
adam@yggdrasil.com     \ /                  Miplitas, California 95035
+1 408 309-6081         | g g d r a s i l   United States of America
                         "Free Software For The Rest Of Us."

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2003-05-21 16:31 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-19 18:21 2.5.69-bk1[23] kconfig loop Adam J. Richter
2003-05-19 18:45 ` Danny ter Haar
2003-05-19 18:58 ` Eli Carter
2003-05-19 21:15 ` Roman Zippel
2003-05-20  2:38 ` DHCP Gerald Stuhrberg
2003-05-20  2:46 ` DHCP Gerald Stuhrberg
2003-05-20  2:54   ` DHCP William Lee Irwin III
2003-05-20 16:48   ` DHCP Bryan O'Sullivan
2003-05-20 17:19     ` DHCP Richard B. Johnson
2003-05-20 18:39       ` DHCP Bryan O'Sullivan
2003-05-21 16:44 2.5.69-bk1[23] kconfig loop Adam J. Richter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).