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

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

Andre Hedrick (andre@linux-ide.org)
Sat, 3 Jun 2000 23:21:39 -0700 (PDT)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: James Sutherland: "Re: HELP!!!! BAD ENTRY IN /etc/ld.so.preload CAUSING ERROR IN LINUX"
- Previous message: Andre Hedrick: "Re: [PATCH] Oops when requesting SiS IDE driver info, plus typo fix"

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/

- Next message: James Sutherland: "Re: HELP!!!! BAD ENTRY IN /etc/ld.so.preload CAUSING ERROR IN LINUX"
- Previous message: Andre Hedrick: "Re: [PATCH] Oops when requesting SiS IDE driver info, plus typo fix"