aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/dma-mapping.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-12-04 14:33:24 -0800
committerChristoph Hellwig <hch@lst.de>2018-12-06 06:56:50 -0800
commit68c9ac1d1fd51233cfac15484c6153b90aaa4ca4 (patch)
tree12dde8031110277d7d67158a3d61f306a121061b /include/linux/dma-mapping.h
parentxen-swiotlb: remove the mapping_error dma_map_ops method (diff)
downloadwireguard-linux-68c9ac1d1fd51233cfac15484c6153b90aaa4ca4.tar.xz
wireguard-linux-68c9ac1d1fd51233cfac15484c6153b90aaa4ca4.zip
dma-mapping: remove the mapping_error dma_map_ops method
No users left except for vmd which just forwards it. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/dma-mapping.h')
-rw-r--r--include/linux/dma-mapping.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/dma-mapping.h b/include/linux/dma-mapping.h
index f89d277cc8ed..f4ac26d5294a 100644
--- a/include/linux/dma-mapping.h
+++ b/include/linux/dma-mapping.h
@@ -128,7 +128,6 @@ struct dma_map_ops {
enum dma_data_direction dir);
void (*cache_sync)(struct device *dev, void *vaddr, size_t size,
enum dma_data_direction direction);
- int (*mapping_error)(struct device *dev, dma_addr_t dma_addr);
int (*dma_supported)(struct device *dev, u64 mask);
u64 (*get_required_mask)(struct device *dev);
};
@@ -580,12 +579,8 @@ static inline void dma_free_coherent(struct device *dev, size_t size,
static inline int dma_mapping_error(struct device *dev, dma_addr_t dma_addr)
{
- const struct dma_map_ops *ops = get_dma_ops(dev);
-
debug_dma_mapping_error(dev, dma_addr);
- if (ops->mapping_error)
- return ops->mapping_error(dev, dma_addr);
if (dma_addr == DMA_MAPPING_ERROR)
return 1;
return 0;