summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShuah Khan <shuahkhan@gmail.com>2012-10-26 04:31:42 +0400
committerJoerg Roedel <joro@8bytes.org>2012-11-17 16:20:38 +0400
commit5d346d103355a0ea1ccc40b7ac0659326cb74077 (patch)
treed6c2e800fe7b4870db2fcf367f8c9d2c3c8944fd
parentbfe0fb0f1a570ae72680d6d48655c98d1f4733f5 (diff)
downloadlinux-5d346d103355a0ea1ccc40b7ac0659326cb74077.tar.xz
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>
-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);
}