diff options
author | Christoph Hellwig <hch@lst.de> | 2024-08-28 08:02:47 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2024-09-04 06:08:51 +0200 |
commit | de6c85bf918ea52d5c680f0d130b37ee2ff152d6 (patch) | |
tree | 4dd1ee15eaeac8ee0f26c1c4ec258d6b81057581 /kernel/dma/Makefile | |
parent | vdpa_sim: don't select DMA_OPS (diff) | |
download | linux-de6c85bf918ea52d5c680f0d130b37ee2ff152d6.tar.xz linux-de6c85bf918ea52d5c680f0d130b37ee2ff152d6.zip |
dma-mapping: clearly mark DMA ops as an architecture feature
DMA ops are a helper for architectures and not for drivers to override
the DMA implementation.
Unfortunately driver authors keep ignoring this. Make the fact more
clear by renaming the symbol to ARCH_HAS_DMA_OPS and having the two drivers
overriding their dma_ops depend on that. These drivers should probably be
marked broken, but we can give them a bit of a grace period for that.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> # for IPU6
Acked-by: Robin Murphy <robin.murphy@arm.com>
Diffstat (limited to 'kernel/dma/Makefile')
-rw-r--r-- | kernel/dma/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/dma/Makefile b/kernel/dma/Makefile index 2e6e933cf7f3..6977033444a3 100644 --- a/kernel/dma/Makefile +++ b/kernel/dma/Makefile @@ -2,7 +2,7 @@ obj-$(CONFIG_HAS_DMA) += mapping.o direct.o obj-$(CONFIG_DMA_OPS_HELPERS) += ops_helpers.o -obj-$(CONFIG_DMA_OPS) += dummy.o +obj-$(CONFIG_ARCH_HAS_DMA_OPS) += dummy.o obj-$(CONFIG_DMA_CMA) += contiguous.o obj-$(CONFIG_DMA_DECLARE_COHERENT) += coherent.o obj-$(CONFIG_DMA_API_DEBUG) += debug.o |