Skip to contentSkip to conversation

compilation fix for 2.4.21-pre7

PATCH New [email protected] 1 participant 1 message Apr 5, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 compilation fix for 2.4.21-pre7

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

include/linux/ide.h +1 -0
diff -u --recursive --new-file -X /linux/dontdiff a/include/linux/ide.h b/include/linux/ide.h
@@ -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