[PATCH] compilation fix for 2.4.21-pre7

Andries.Brouwer@cwi.nl
Sat, 5 Apr 2003 12:21:47 +0200 (MEST)


drivers/ide/idedriver.o: In function `init_dma_generic':
drivers/ide/idedriver.o(.text+0x2d): undefined reference to `ide_setup_dma'
drivers/ide/idedriver.o: In function `ide_hwif_setup_dma':
drivers/ide/idedriver.o(.text+0x13a25): undefined reference to `ide_setup_dma'
make: *** [vmlinux] Error 1

is fixed by

diff -u --recursive --new-file -X /linux/dontdiff a/include/linux/ide.h b/include/linux/ide.h
--- a/include/linux/ide.h Sat Apr 5 10:19:55 2003
+++ b/include/linux/ide.h Sat Apr 5 11:01:58 2003
@@ -1717,6 +1717,7 @@
extern int __ide_dma_lostirq(ide_drive_t *);
extern int __ide_dma_timeout(ide_drive_t *);
#else
+static inline void ide_setup_dma(ide_hwif_t *x, unsigned long y, unsigned int z) {;}
static inline void ide_release_dma(ide_hwif_t *x) {;}
#endif

-
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/