Re: [PATCH] ide.c compiling without DMA support

From: Andre Hedrick (andre@linux-ide.org)
Date: Sun Jun 04 2000 - 01:21:39 EST


Correct answer!

On Sun, 4 Jun 2000, Arnaldo Carvalho de Melo wrote:

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

Andre Hedrick
The Linux ATA/IDE guy

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



This archive was generated by hypermail 2b29 : Wed Jun 07 2000 - 21:00:18 EST