diff options
author | Shuah Khan <shuahkhan@gmail.com> | 2012-10-25 18:31:42 -0600 |
---|---|---|
committer | Joerg Roedel <joro@8bytes.org> | 2012-11-17 13:20:38 +0100 |
commit | 5d346d103355a0ea1ccc40b7ac0659326cb74077 (patch) | |
tree | d6c2e800fe7b4870db2fcf367f8c9d2c3c8944fd /arch/sparc/include | |
parent | bfe0fb0f1a570ae72680d6d48655c98d1f4733f5 (diff) | |
download | op-kernel-dev-5d346d103355a0ea1ccc40b7ac0659326cb74077.zip op-kernel-dev-5d346d103355a0ea1ccc40b7ac0659326cb74077.tar.gz |
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/include')
-rw-r--r-- | arch/sparc/include/asm/dma-mapping.h | 1 |
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 8493fd3..05fe53f 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); } |