fix: 2.1.35 initrd broken

Gerd Knorr (kraxel@cs.tu-berlin.de)
Thu, 17 Apr 1997 21:37:24 +0200 (MET DST)


Hi !

Bad idea to add a __initfunc to do_linuxrc, this gives an oops if you try
to boot with a initrd for loading some basic modules. Of cource loading
the modules failed and this ended up with an panic becauce linux could not
mount the root fs...

Gerd

-------------------------------------------------------------------------
--- init/main.c.2.1.35 Thu Apr 17 21:19:02 1997
+++ init/main.c Thu Apr 17 21:19:22 1997
@@ -948,7 +948,7 @@
}

#ifdef CONFIG_BLK_DEV_INITRD
-__initfunc(static int do_linuxrc(void * shell))
+static int do_linuxrc(void * shell)
{
static char *argv[] = { "linuxrc", NULL, };