2.6.10 - add missing dma_mapping_error
PATCH 1/1 2.6.10 - add missing dma_mapping_error
Hi,
this patch adds dma_mapping_error to dma-mapping.h, it's needed to compile s-ata support (=libata and maybe other stuff).
stefan
include/asm-alpha/dma-mapping.h renamed from include/asm-alpha/dma-mapping.h.orig +4 -0
@@ -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)