public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] init/main.c
@ 2001-07-21 16:51 Stefan Becker
  2001-07-21 17:05 ` Alexander Griesser
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Stefan Becker @ 2001-07-21 16:51 UTC (permalink / raw)
  To: Alan Cox; +Cc: linux-kernel

Hi!

The following patch against 2.4.6-ac5 does

(a) a small cleanup to profile_setup()
(b) wraps certain root_dev_names[] into #ifdefs.
    I hope I found the correct CONFIG_BLK_* variables

Compiles and boots here, but I don't have any RAID-controllers ;-)

Greetings from Aachen,
Stefan

--- linux-2.4.6-ac5/init/main.c	Sat Jul 21 18:34:15 2001
+++ linux/init/main.c	Sat Jul 21 18:36:38 2001
@@ -138,8 +138,9 @@
 
 static int __init profile_setup(char *str)
 {
-    int par;
-    if (get_option(&str,&par)) prof_shift = par;
+	int par;
+	if (get_option(&str,&par))
+		prof_shift = par;
 	return 1;
 }
 
@@ -280,6 +281,7 @@
        { "xpram30", (XPRAM_MAJOR << MINORBITS) + 30 },
        { "xpram31", (XPRAM_MAJOR << MINORBITS) + 31 },
 #endif
+#ifdef CONFIG_BLK_DEV_DAC960
 	{ "rd/c0d0p",0x3000 },
 	{ "rd/c0d1p",0x3008 },
 	{ "rd/c0d2p",0x3010 },
@@ -296,6 +298,8 @@
 	{ "rd/c0d13p",0x3068 },
 	{ "rd/c0d14p",0x3070 },
 	{ "rd/c0d15p",0x3078 },
+#endif
+#ifdef CONFIG_BLK_CPQ_DA
 	{ "ida/c0d0p",0x4800 },
 	{ "ida/c0d1p",0x4810 },
 	{ "ida/c0d2p",0x4820 },
@@ -312,6 +316,8 @@
 	{ "ida/c0d13p",0x48D0 },
 	{ "ida/c0d14p",0x48E0 },
 	{ "ida/c0d15p",0x48F0 },
+#endif
+#ifdef CONFIG_BLK_CPQ_CISS_DA
 	{ "cciss/c0d0p",0x6800 },
 	{ "cciss/c0d1p",0x6810 },
 	{ "cciss/c0d2p",0x6820 },
@@ -328,6 +334,8 @@
 	{ "cciss/c0d13p",0x68D0 },
 	{ "cciss/c0d14p",0x68E0 },
 	{ "cciss/c0d15p",0x68F0 },
+#endif
+#ifdef CONFIG_BLK_DEV_ATARAID
 	{ "ataraid/d0p",0x7200 },
 	{ "ataraid/d1p",0x7210 },
 	{ "ataraid/d2p",0x7220 },
@@ -344,6 +352,7 @@
 	{ "ataraid/d13p",0x72D0 },
 	{ "ataraid/d14p",0x72E0 },
 	{ "ataraid/d15p",0x72F0 },
+#endif
  	{ "mtdblock", 0x1f00 },
 	{ "nftla", 0x5d00 },
  	{ "nftlb", 0x5d10 },


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

end of thread, other threads:[~2001-07-22  4:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-21 16:51 [PATCH] init/main.c Stefan Becker
2001-07-21 17:05 ` Alexander Griesser
2001-07-21 17:36 ` Robert Love
2001-07-21 21:39 ` Andrzej Krzysztofowicz
2001-07-22  3:58   ` Stefan Becker
2001-07-22  4:05     ` Keith Owens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox