* [PATCH?] ide_setup_dma undefined
@ 2003-03-04 10:20 Andries.Brouwer
0 siblings, 0 replies; only message in thread
From: Andries.Brouwer @ 2003-03-04 10:20 UTC (permalink / raw)
To: alan; +Cc: linux-kernel
If one compiles 2.4.21-pre5 without CONFIG_BLK_DEV_IDEDMA_PCI
the compilation fails with undefined ide_setup_dma().
And indeed, ide_setup_dma is called in ide_hwif_setup_dma
in setup-pci.c.
One of the ways to make the kernel compile with this config is
--- ../../linux-2.4.21-pre5/linux/include/linux/ide.h Tue Mar 4 02:25:12 2003
+++ include/linux/ide.h Tue Mar 4 11:07:32 2003
@@ -1719,6 +1719,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
Andries
[much larger changes might be appropriate]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-03-04 10:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-04 10:20 [PATCH?] ide_setup_dma undefined Andries.Brouwer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®