* [PATCH] 2.6 - alpha: add missing dma_mapping_error
@ 2005-02-09 14:23 Stefan Knoblich
0 siblings, 0 replies; only message in thread
From: Stefan Knoblich @ 2005-02-09 14:23 UTC (permalink / raw)
To: linux-kernel
Hi,
attached patch defines dma_mapping_error on alpha. Without this libata-core.c
won't compile.
stefan
--- linux-2.6.10/include/asm-alpha/dma-mapping.h.orig 2004-12-26
20:45:25.139475104 +0100
+++ linux-2.6.10/include/asm-alpha/dma-mapping.h 2004-12-26 20:46:54.684862136
+0100
@@ -25,6 +25,8 @@
pci_unmap_sg(alpha_gendev_to_pci(dev), sg, nents, dir)
#define dma_supported(dev, mask) \
pci_dma_supported(alpha_gendev_to_pci(dev), mask)
+#define dma_mapping_error(addr) \
+ pci_dma_mapping_error(addr)
#else /* no PCI - no IOMMU. */
@@ -43,6 +45,8 @@
#define dma_unmap_page(dev, addr, size, dir) do { } while (0)
#define dma_unmap_sg(dev, sg, nents, dir) do { } while (0)
+#define dma_mapping_error(addr) (0)
+
#endif /* !CONFIG_PCI */
#define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-02-09 14:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-09 14:23 [PATCH] 2.6 - alpha: add missing dma_mapping_error Stefan Knoblich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox