Linux ATA/IDE development
 help / color / mirror / Atom feed
* Can't disable IDE DMA on 2.6.0-test9 (patch)
@ 2003-11-20 23:05 Peter Chubb
  2003-12-08  1:39 ` Bartlomiej Zolnierkiewicz
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Chubb @ 2003-11-20 23:05 UTC (permalink / raw)
  To: akpm, B.Zolnierkiewicz; +Cc: linux-ide, linux-kernel


Hi Folks,
   If you try to disable IDE DMA from Kconfig, you'll end up with an
undefined symbol, ide_hwif_setup_dma().

The attached rather ugly patch fixes the problem by defining a dummy
function.

===== setup-pci.c 1.19 vs edited =====
--- 1.19/drivers/ide/setup-pci.c	Sat Oct 18 01:22:22 2003
+++ edited/setup-pci.c	Wed Nov 19 13:52:25 2003
@@ -474,6 +474,11 @@
  *	state
  */
  
+#ifndef CONFIG_BLK_DEV_IDEDMA_PCI
+static void ide_hwif_setup_dma(struct pci_dev *dev, ide_pci_device_t *d, ide_hwif_t *hwif)
+{
+}
+#else
 static void ide_hwif_setup_dma(struct pci_dev *dev, ide_pci_device_t *d, ide_hwif_t *hwif)
 {
 	u16 pcicmd;
@@ -516,6 +521,7 @@
 		}
 	}
 }
+#endif /* CONFIG_BLK_DEV_IDEDMA_PCI*/
 
 /**
  *	ide_setup_pci_controller	-	set up IDE PCI

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-12-08  2:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-20 23:05 Can't disable IDE DMA on 2.6.0-test9 (patch) Peter Chubb
2003-12-08  1:39 ` Bartlomiej Zolnierkiewicz
2003-12-08  2:34   ` Peter Chubb
2003-12-08  3:00     ` Bartlomiej Zolnierkiewicz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox