linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Linux-2.2.20pre10
@ 2001-09-13  6:59 Willy TARREAU
  2001-09-13 16:46 ` Linux-2.2.20pre10 Robert Love
  0 siblings, 1 reply; 2+ messages in thread
From: Willy TARREAU @ 2001-09-13  6:59 UTC (permalink / raw)
  To: alan; +Cc: ratz, kai, rml, linux-kernel

> -#define MAX_ETH_CARDS 16
> +#define MAX_ETH_CARDS 32

I'd like this one in the kernel too since I've also patched
it (although I set it to 64 not to worry anymore). It's not
uncommon to put 4 or 5 quad ethernet cards into a system
that already hosts an on-board interface. I think that at
spare time, I'll backport net_init.c from 2.4 which doesn't
have sort of these limitations.

BTW, there are also a few very little patches that would 
have to be considered :

Kai Germaschewski proposed this single-liner fix for HiSax
that could not be linked into the kernel, but I don't see it 
here (perhaps he simply forgot it, or perhaps I'm wrong) :

--- linux/drivers/isdn/hisax/config.c   Fri Sep  7 20:33:48 2001
+++ linux/drivers/isdn/hisax/config.c   Fri Sep  7 20:59:59 2001
@@ -436,7 +436,7 @@
 }
  
 #ifndef MODULE
-static void __init
+void __init
 HiSax_setup(char *str, int *ints)
 {
	int i, j, argc;


I also found that sometimes, menuconfig didn't refresh correctly (in the CPU
dialog window). This patch fixes it for me :

--- linux-2.2.19/scripts/lxdialog/checklist.c   Wed Mar 28 18:00:02 2001
+++ linux-2.2.19-wt1/scripts/lxdialog/checklist.c       Mon Feb  1 21:03:20 1999
@@ -108,8 +104,8 @@
     print_button (dialog, "Select", y, x, selected == 0);
     print_button (dialog, " Help ", y, x + 14, selected == 1);

-    /*    wmove(dialog, y, x+1 + 14*selected);
-    wrefresh (dialog);*/
+    /*    wmove(dialog, y, x+1 + 14*selected);*/
+    wrefresh (dialog);
 }

 /*


This one, back-ported from 2.4, avoids eventual problems with parenthesis
in menuconfig choices :

--- 2.2.19-wt3-O12/scripts/Menuconfig   Wed Jun  6 00:02:45 2001
+++ 2.2.19-wt3-O13/scripts/Menuconfig   Wed Jun  6 00:21:29 2001
@@ -347,7 +347,7 @@
 
 	echo -e "
 	function $firstchoice () \
-               { l_choice '$title' \"$choices\" $current ;}" >>MCradiolists
+               { l_choice '$title' \"$choices\" \"$current\" ;}" >>MCradiolists
 }

 } # END load_functions()

Robert M. Love pointed out that the command line parse could forget arguments
if either MAX_INIT_ENVS or MAX_INIT_ARGS were reached, and his patch seems to
fix it correctly :

--- linux-2.2.19-wt5-OE/init/main.c     Sat Sep  8 23:11:00 2001
+++ linux-2.2.19-wt5-OF/init/main.c     Sat Sep  8 23:24:13 2001
@@ -1292,11 +1292,11 @@
                 */
 		if (strchr(line,'=')) {
 			if (envs >= MAX_INIT_ENVS)
-                               break;
+                               continue;
 			envp_init[++envs] = line;
  		} else {
 			if (args >= MAX_INIT_ARGS)
-                               break;
+                               continue;
  			argv_init[++args] = line;
 		}
 	}


Well, that's all for now ; I think that none of them is at risk, so if you
could apply them, that'd be great.

Thanks,
Willy


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

* Re: Linux-2.2.20pre10
  2001-09-13  6:59 Linux-2.2.20pre10 Willy TARREAU
@ 2001-09-13 16:46 ` Robert Love
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Love @ 2001-09-13 16:46 UTC (permalink / raw)
  To: Willy TARREAU; +Cc: linux-kernel

On Thu, 2001-09-13 at 02:59, Willy TARREAU wrote:
> Robert M. Love pointed out that the command line parse could forget arguments
> if either MAX_INIT_ENVS or MAX_INIT_ARGS were reached, and his patch seems to
> fix it correctly :

I have posted posted this patch multiple times for 2.2 and 2.4, to no
avail -- in fact, it seems no one even thinks this is a bug.

to me, it is pretty clear that hitting MAX_INIT_ENVS _or_ MAX_INIT_ARGS
kills the parse_options loop, when that should not occur until both are
hit -- thus, this patch switches the breaks to continues.

thanks for noticing, I hope it is applied.

> --- linux-2.2.19-wt5-OE/init/main.c     Sat Sep  8 23:11:00 2001
> +++ linux-2.2.19-wt5-OF/init/main.c     Sat Sep  8 23:24:13 2001
> @@ -1292,11 +1292,11 @@
>                  */
>  		if (strchr(line,'=')) {
>  			if (envs >= MAX_INIT_ENVS)
> -                               break;
> +                               continue;
>  			envp_init[++envs] = line;
>   		} else {
>  			if (args >= MAX_INIT_ARGS)
> -                               break;
> +                               continue;
>   			argv_init[++args] = line;
>  		}
>  	}

-- 
Robert M. Love
rml at ufl.edu
rml at tech9.net


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

end of thread, other threads:[~2001-09-13 16:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-13  6:59 Linux-2.2.20pre10 Willy TARREAU
2001-09-13 16:46 ` Linux-2.2.20pre10 Robert Love

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).