v1.3.9 (again)

Peter K (pko@paradigm.co.za)
Tue, 11 Jul 1995 16:24:03 +0200 (GMT+0200)


Hi, gang

Hmmm, genhd.c in ~/drivers/block contains an external reference to
'ide_xlate_1024', which is found in ~/drivers/block/ide.c. Now I don't
include ide stuff in my kernel and thus ze make zhe vlunks.

Seems genhd.c needs some "#ifdef CONFIG_BLK_DEV_IDE"'s. Patch included.

---------------------- Cut Here --------------------------------
*** drivers/block/genhd.c.org Tue Jul 11 16:18:33 1995
--- drivers/block/genhd.c Tue Jul 11 16:15:13 1995
***************
*** 114,120 ****
--- 114,122 ----
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,155 ****
--- 151,159 ----
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,168 ****
--- 166,174 ----
*/
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) */
---------------------- Cut Here --------------------------------A

Peter Kooiman | Fax : ++27-12-663-4191/2
Paradigm Systems Technology |
Pretoria, South Africa | UUCP : pko@silmaril.UUCP
Voice : ++27-12-663-5340 | DNS : pko@paradigm.co.za