Linux-kernel mailing list archive 2000-23,: [PATCH] ide.c compiling without DMA support

# [PATCH] ide.c compiling without DMA support

Arnaldo Carvalho de Melo (acme@conectiva.com.br)
Sun, 4 Jun 2000 00:59:05 -0300

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Marty Leisner: "Re: Syscall number allocation"
- Previous message: Bear Giles: "Re: tcp/ip over scsi"

Hi,

if you don't enable the option
"PCI bus-master DMA support"

then kernel linking fails with this:

drivers/ide/idedriver.o: In function `ide_unregister':
drivers/ide/idedriver.o(.text+0x2a57): undefined reference to `ide_release_dma'
make: *** [vmlinux] Error 1

Please check if the patch below is the correct fix.

- Arnaldo

--- linux-2.4.0-test1-ac7/drivers/ide/ide.c Sun Jun 4 00:53:00 2000
+++ linux-2.4.0-test1-ac7.acme/drivers/ide/ide.c Sun Jun 4 00:20:30 2000
@@ -2012,12 +2012,12 @@
else
hwgroup->hwif = HWIF(hwgroup->drive);
-#ifndef CONFIG_DMA_NONPCI
+#if defined(CONFIG_BLK_DEV_IDEDMA) && !defined(CONFIG_DMA_NONPCI)
if (hwif->dma_base) {
(void) ide_release_dma(hwif);
hwif->dma_base = 0;
}
-#endif /* CONFIG_DMA_NONPCI */
+#endif /* (CONFIG_BLK_DEV_IDEDMA) && !(CONFIG_DMA_NONPCI) */
/*
* Remove us from the kernel's knowledge

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

- Next message: Marty Leisner: "Re: Syscall number allocation"
- Previous message: Bear Giles: "Re: tcp/ip over scsi"