Inside linux-1.3.9/drivers/block/genhd.c,
please change the two occurances of:
ide_xlate_1024(dev); /* harmless if not an IDE drive */
to this instead:
#ifdef CONFIG_BLK_DEV_IDE
ide_xlate_1024(dev); /* harmless if not an IDE drive */
#endif
The rest of the code can remain as-is, with no ill effects.
Cheers,
-ml