diff options
author | Christoph Hellwig <hch@lst.de> | 2018-12-22 00:14:44 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2019-02-13 21:12:50 +0300 |
commit | dc2acded38957dfa6b7b7e0203b4b8cb8d818ce6 (patch) | |
tree | 9cf274e19000726408fcf2512915d9e27a600fa1 /include/linux/dma-mapping.h | |
parent | 347cb6af8710b72cf9685fdc09d07873cf42d51f (diff) | |
download | linux-dc2acded38957dfa6b7b7e0203b4b8cb8d818ce6.tar.xz |
dma-mapping: add a kconfig symbol for arch_teardown_dma_ops availability
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Catalin Marinas <catalin.marinas@arm.com> # arm64
Diffstat (limited to 'include/linux/dma-mapping.h')
-rw-r--r-- | include/linux/dma-mapping.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/linux/dma-mapping.h b/include/linux/dma-mapping.h index 2b20d60e6158..4210c5c1dd21 100644 --- a/include/linux/dma-mapping.h +++ b/include/linux/dma-mapping.h @@ -681,9 +681,13 @@ static inline void arch_setup_dma_ops(struct device *dev, u64 dma_base, } #endif /* CONFIG_ARCH_HAS_SETUP_DMA_OPS */ -#ifndef arch_teardown_dma_ops -static inline void arch_teardown_dma_ops(struct device *dev) { } -#endif +#ifdef CONFIG_ARCH_HAS_TEARDOWN_DMA_OPS +void arch_teardown_dma_ops(struct device *dev); +#else +static inline void arch_teardown_dma_ops(struct device *dev) +{ +} +#endif /* CONFIG_ARCH_HAS_TEARDOWN_DMA_OPS */ static inline unsigned int dma_get_max_seg_size(struct device *dev) { |