NO IDE drive with Linux-1.3.9

NIIBE Yutaka (gniibe@mri.co.jp)
Wed, 12 Jul 1995 11:56:47 +0900


Hello, Linus,

I don't have any IDE drives, but wanna compile the kernel. :-)
Thank you.

-- 
NIIBE Yutaka
Mitsubishi Research Institute, Inc.

--- linux-1.3.9/drivers/block/genhd.c~ Wed Jul 12 09:56:03 1995 +++ linux/drivers/block/genhd.c Wed Jul 12 11:46:55 1995 @@ -114,7 +114,9 @@ struct buffer_head *bh; struct partition *p; int mask = (1 << hd->minor_shift) - 1; +#ifdef CONFIG_BLK_DEV_IDE extern void ide_xlate_1024(dev_t); +#endif read_mbr: if (!(bh = bread(dev,0,1024))) { @@ -149,7 +151,9 @@ first_sector += p->end_sector; hd->part[MINOR(dev)].start_sect += p->end_sector; hd->part[MINOR(dev)].nr_sects -= p->end_sector; +#ifdef CONFIG_BLK_DEV_IDE ide_xlate_1024(dev); /* harmless if not an IDE drive */ +#endif bh->b_dirt = 0; /* prevent re-use of this block */ bh->b_uptodate = 0; bh->b_req = 0; @@ -162,7 +166,9 @@ */ if (p->sys_ind == DM6_AUXPARTITION) { printk(" [DM6]"); +#ifdef CONFIG_BLK_DEV_IDE ide_xlate_1024(dev); /* harmless if not an IDE drive */ +#endif } current_minor += 4; /* first "extra" minor (for extended partitions) */