Commit ad154880 authored by Shuah Khan's avatar Shuah Khan Committed by Joerg Roedel

c6x: 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>
Acked-by: default avatarMark Salter <msalter@redhat.com>
Signed-off-by: default avatarJoerg Roedel <joro@8bytes.org>
parent bb7c4deb
......@@ -32,6 +32,7 @@ static inline int dma_set_mask(struct device *dev, u64 dma_mask)
*/
static inline int dma_mapping_error(struct device *dev, dma_addr_t dma_addr)
{
debug_dma_mapping_error(dev, dma_addr);
return dma_addr == ~0;
}
......
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