提交 5d346d10 编写于 作者: S Shuah Khan 提交者: Joerg Roedel

sparc: dma-mapping: support debug_dma_mapping_error

Add support for debug_dma_mapping_error() call to avoid warning from
debug_dma_unmap() interface when it checks for mapping error checked
status. Without this patch, device driver failed to check map error
warning is generated.
Signed-off-by: NShuah Khan <shuah.khan@hp.com>
Acked-by: NDavid S. Miller <davem@davemloft.net>
Signed-off-by: NJoerg Roedel <joro@8bytes.org>
上级 bfe0fb0f
无相关合并请求
......@@ -59,6 +59,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 dma_addr)
{
debug_dma_mapping_error(dev, dma_addr);
return (dma_addr == DMA_ERROR_CODE);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部