[PATCH] init/main.c/root_dev_names - another one #ifdef

Denis Zaitsev (zzz@cd-club.ru)
Wed, 31 Oct 2001 04:53:54 +0500


The idea is to include the SCSI disk's names into the list only if we
compile the kernel with the corresponding support. It's not very
serious patch, but to put the things in order... Linus, please, apply
it.

--- init/main.c.orig Wed Oct 31 02:23:48 2001
+++ init/main.c Wed Oct 31 02:44:02 2001
@@ -166,6 +166,7 @@
{ "hdr", 0x5A40 },
{ "hds", 0x5B00 },
{ "hdt", 0x5B40 },
+#ifdef CONFIG_BLK_DEV_SD
{ "sda", 0x0800 },
{ "sdb", 0x0810 },
{ "sdc", 0x0820 },
@@ -182,6 +183,7 @@
{ "sdn", 0x08d0 },
{ "sdo", 0x08e0 },
{ "sdp", 0x08f0 },
+#endif
{ "ada", 0x1c00 },
{ "adb", 0x1c10 },
{ "adc", 0x1c20 },
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/