ia64: dma_debug: add debug_dma_mapping_error support
authorShuah Khan <shuah.khan@hp.com>
Fri, 23 Nov 2012 21:32:55 +0000 (14:32 -0700)
committerJoerg Roedel <joro@8bytes.org>
Wed, 28 Nov 2012 14:28:58 +0000 (15:28 +0100)
Add dma-debug interface debug_dma_mapping_error() to debug drivers that fail
to check dma mapping errors on addresses returned by dma_map_single() and
dma_map_page() interfaces.

Signed-off-by: Shuah Khan <shuah.khan@hp.com>
Signed-off-by: Joerg Roedel <joro@8bytes.org>
arch/ia64/include/asm/dma-mapping.h

index 4f5e8148440d25b2d89d8824e9387878e33e4802..cf3ab7e784b5474be705c6e091431f5538b1ee00 100644 (file)
@@ -58,6 +58,7 @@ static inline void dma_free_attrs(struct device *dev, size_t size,
 static inline int dma_mapping_error(struct device *dev, dma_addr_t daddr)
 {
        struct dma_map_ops *ops = platform_dma_get_ops(dev);
+       debug_dma_mapping_error(dev, daddr);
        return ops->mapping_error(dev, daddr);
 }