summaryrefslogtreecommitdiffstats
path: root/arch/sparc
diff options
context:
space:
mode:
authorShuah Khan <shuahkhan@gmail.com>2012-10-26 02:31:42 +0200
committerJoerg Roedel <joro@8bytes.org>2012-11-17 13:20:38 +0100
commit5d346d103355a0ea1ccc40b7ac0659326cb74077 (patch)
treed6c2e800fe7b4870db2fcf367f8c9d2c3c8944fd /arch/sparc
parentdma-debug: fix to not have dependency on get_dma_ops() interface (diff)
downloadlinux-5d346d103355a0ea1ccc40b7ac0659326cb74077.tar.xz
linux-5d346d103355a0ea1ccc40b7ac0659326cb74077.zip
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: Shuah Khan <shuah.khan@hp.com> Acked-by: David S. Miller <davem@davemloft.net> Signed-off-by: Joerg Roedel <joro@8bytes.org>
Diffstat (limited to 'arch/sparc')
-rw-r--r--arch/sparc/include/asm/dma-mapping.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sparc/include/asm/dma-mapping.h b/arch/sparc/include/asm/dma-mapping.h
index 8493fd3c7ba5..05fe53f5346e 100644
--- a/arch/sparc/include/asm/dma-mapping.h
+++ b/arch/sparc/include/asm/dma-mapping.h
@@ -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);
}