summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShuah Khan <shuah.khan@hp.com>2012-11-23 14:32:55 -0700
committerJoerg Roedel <joro@8bytes.org>2012-11-28 15:28:58 +0100
commit27fa0ab66f17e49a59fbca272f8c1cfab7c5fe81 (patch)
tree747be0a1e859842b9b88ce98d7fece67c946718e
parentad154880c03daf1f776e502e2c18775eda4280d2 (diff)
downloadop-kernel-dev-27fa0ab66f17e49a59fbca272f8c1cfab7c5fe81.zip
op-kernel-dev-27fa0ab66f17e49a59fbca272f8c1cfab7c5fe81.tar.gz
ia64: dma_debug: add debug_dma_mapping_error support
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>
-rw-r--r--arch/ia64/include/asm/dma-mapping.h1
1 files changed, 1 insertions, 0 deletions
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);
}
OpenPOWER on IntegriCloud