s390/dma: support debug_dma_mapping_error
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Tue, 18 Jun 2013 15:38:31 +0000 (17:38 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 19 Jun 2013 07:25:42 +0000 (09:25 +0200)
Without this patch drivers will get blamed (CONFIG_DMA_API_DEBUG=y)
for not calling dma_mapping_error (even if they do).

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Acked-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/dma-mapping.h

index 9f15a36..2f8c1ab 100644 (file)
@@ -50,6 +50,7 @@ static inline int dma_mapping_error(struct device *dev, dma_addr_t dma_addr)
 {
        struct dma_map_ops *dma_ops = get_dma_ops(dev);
 
+       debug_dma_mapping_error(dev, dma_addr);
        if (dma_ops->mapping_error)
                return dma_ops->mapping_error(dev, dma_addr);
        return (dma_addr == DMA_ERROR_CODE);