Patchwork [3/9] ia64: dma_debug: add debug_dma_mapping_error support

login
register
mail settings
Submitter Shuah Khan
Date Nov. 23, 2012, 9:32 p.m.
Message ID <1353706375.5270.98.camel@lorien2>
Download mbox | patch
Permalink /patch/201404/
State Not Applicable
Delegated to: David Miller
Headers show

Comments

Shuah Khan - Nov. 23, 2012, 9:32 p.m.
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>
---
 arch/ia64/include/asm/dma-mapping.h |    1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/arch/ia64/include/asm/dma-mapping.h b/arch/ia64/include/asm/dma-mapping.h
index 4f5e814..cf3ab7e 100644
--- a/arch/ia64/include/asm/dma-mapping.h
+++ b/arch/ia64/include/asm/dma-mapping.h
@@ -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);
 }