patch-1.3.16 linux/drivers/block/genhd.c

Next file: linux/drivers/block/hd.c
Previous file: linux/drivers/block/blk.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.15/linux/drivers/block/genhd.c linux/drivers/block/genhd.c
@@ -113,12 +113,15 @@
 
 static int msdos_partition(struct gendisk *hd, unsigned int dev, unsigned long first_sector)
 {
-	int i, minor = current_minor, tested_for_dm6 = 0;
+	int i, minor = current_minor;
 	struct buffer_head *bh;
 	struct partition *p;
 	int mask = (1 << hd->minor_shift) - 1;
+#ifdef CONFIG_BLK_DEV_IDE
+	int tested_for_dm6 = 0;
 
 read_mbr:
+#endif
 	if (!(bh = bread(dev,0,1024))) {
 		printk(" unable to read partition table\n");
 		return -1;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this