Commit 46f4fe4b authored by Stefan Knoblich's avatar Stefan Knoblich Committed by Linus Torvalds

[PATCH] alpha: add missing dma_mapping_error

Attached patch defines dma_mapping_error on alpha.  Without this
libata-core.c won't compile.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 8df3c8e0
...@@ -25,6 +25,8 @@ ...@@ -25,6 +25,8 @@
pci_unmap_sg(alpha_gendev_to_pci(dev), sg, nents, dir) pci_unmap_sg(alpha_gendev_to_pci(dev), sg, nents, dir)
#define dma_supported(dev, mask) \ #define dma_supported(dev, mask) \
pci_dma_supported(alpha_gendev_to_pci(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. */ #else /* no PCI - no IOMMU. */
...@@ -43,6 +45,8 @@ int dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, ...@@ -43,6 +45,8 @@ int dma_map_sg(struct device *dev, struct scatterlist *sg, int nents,
#define dma_unmap_page(dev, addr, size, dir) do { } while (0) #define dma_unmap_page(dev, addr, size, dir) do { } while (0)
#define dma_unmap_sg(dev, sg, nents, dir) do { } while (0) #define dma_unmap_sg(dev, sg, nents, dir) do { } while (0)
#define dma_mapping_error(addr) (0)
#endif /* !CONFIG_PCI */ #endif /* !CONFIG_PCI */
#define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f) #define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment