Commit 27fa0ab6 authored by Shuah Khan's avatar Shuah Khan Committed by Joerg Roedel

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: default avatarShuah Khan <shuah.khan@hp.com>
Signed-off-by: default avatarJoerg Roedel <joro@8bytes.org>
parent ad154880
...@@ -58,6 +58,7 @@ static inline void dma_free_attrs(struct device *dev, size_t size, ...@@ -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) static inline int dma_mapping_error(struct device *dev, dma_addr_t daddr)
{ {
struct dma_map_ops *ops = platform_dma_get_ops(dev); struct dma_map_ops *ops = platform_dma_get_ops(dev);
debug_dma_mapping_error(dev, daddr);
return ops->mapping_error(dev, daddr); return ops->mapping_error(dev, daddr);
} }
......
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