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

From: Denis Zaitsev (zzz@cd-club.ru)
Date: Tue Oct 30 2001 - 18:53:54 EST


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/



This archive was generated by hypermail 2b29 : Wed Oct 31 2001 - 21:00:42 EST