diff options
author | Christoph Hellwig <hch@lst.de> | 2020-07-08 10:30:00 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2020-07-19 10:29:23 +0300 |
commit | 2f9237d4f6df49b74c51cdac555b0a9979d0c237 (patch) | |
tree | 6a09811a657e87bc6b716443993bceb2775a1b8f /kernel/dma/Makefile | |
parent | b4174173005972f8f6497883d08d87e0aba1b604 (diff) | |
download | linux-2f9237d4f6df49b74c51cdac555b0a9979d0c237.tar.xz |
dma-mapping: make support for dma ops optional
Avoid the overhead of the dma ops support for tiny builds that only
use the direct mapping.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'kernel/dma/Makefile')
-rw-r--r-- | kernel/dma/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/dma/Makefile b/kernel/dma/Makefile index 370f63344e9c..32c7c1942bbd 100644 --- a/kernel/dma/Makefile +++ b/kernel/dma/Makefile @@ -1,6 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 -obj-$(CONFIG_HAS_DMA) += mapping.o direct.o dummy.o +obj-$(CONFIG_HAS_DMA) += mapping.o direct.o +obj-$(CONFIG_DMA_OPS) += dummy.o obj-$(CONFIG_DMA_CMA) += contiguous.o obj-$(CONFIG_DMA_DECLARE_COHERENT) += coherent.o obj-$(CONFIG_DMA_VIRT_OPS) += virt.o |