]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
dma-mapping: remove the dma_direct_set_offset export
authorChristoph Hellwig <hch@lst.de>
Fri, 6 Nov 2020 16:02:17 +0000 (17:02 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 18 Nov 2020 08:11:38 +0000 (09:11 +0100)
Drop the dma_direct_set_offset export and move the declaration to
dma-map-ops.h now that the Allwinner drivers have stopped calling it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
arch/arm/mach-keystone/keystone.c
arch/arm/mach-omap1/usb.c
arch/sh/drivers/pci/pcie-sh7786.c
arch/x86/pci/sta2x11-fixup.c
include/linux/dma-map-ops.h
include/linux/dma-mapping.h
kernel/dma/direct.c

index 09a65c2dfd732766a20637ec635d00fd0e3a57f8..cd711bfc591f21755e79838de164ed54f1f9dd83 100644 (file)
@@ -8,7 +8,7 @@
  */
 #include <linux/io.h>
 #include <linux/of.h>
-#include <linux/dma-mapping.h>
+#include <linux/dma-map-ops.h>
 #include <linux/init.h>
 #include <linux/of_platform.h>
 #include <linux/of_address.h>
index ba8566204ea9f42d47573c39be5e5acc59e0dd5c..86d3b3c157af444901d69033a7e24a82bc0addd7 100644 (file)
@@ -9,7 +9,7 @@
 #include <linux/kernel.h>
 #include <linux/init.h>
 #include <linux/platform_device.h>
-#include <linux/dma-mapping.h>
+#include <linux/dma-map-ops.h>
 #include <linux/io.h>
 
 #include <asm/irq.h>
index 4468289ab2cac7443a01cdb6d1c1e54c29651aad..4d499476c33ad6fb18cab4654f3505f6106b288f 100644 (file)
@@ -12,7 +12,7 @@
 #include <linux/io.h>
 #include <linux/async.h>
 #include <linux/delay.h>
-#include <linux/dma-mapping.h>
+#include <linux/dma-map-ops.h>
 #include <linux/slab.h>
 #include <linux/clk.h>
 #include <linux/sh_clk.h>
index 5701d5ba3df4ba2b29c525b5aba576e717d36912..7d25256918543f897f785abb4cf8767f62bf73e3 100644 (file)
@@ -11,7 +11,8 @@
 #include <linux/pci_ids.h>
 #include <linux/export.h>
 #include <linux/list.h>
-#include <linux/dma-direct.h>
+#include <linux/dma-map-ops.h>
+#include <linux/swiotlb.h>
 #include <asm/iommu.h>
 
 #define STA2X11_SWIOTLB_SIZE (4*1024*1024)
index a5f89fc4d6df16ba9d97039d09c97559ef31fd04..03925e438ec3e5254e8638b8fabc1d196d84824a 100644 (file)
@@ -226,6 +226,9 @@ struct page *dma_alloc_from_pool(struct device *dev, size_t size,
                bool (*phys_addr_ok)(struct device *, phys_addr_t, size_t));
 bool dma_free_from_pool(struct device *dev, void *start, size_t size);
 
+int dma_direct_set_offset(struct device *dev, phys_addr_t cpu_start,
+               dma_addr_t dma_start, u64 size);
+
 #ifdef CONFIG_ARCH_HAS_DMA_COHERENCE_H
 #include <asm/dma-coherence.h>
 #elif defined(CONFIG_ARCH_HAS_SYNC_DMA_FOR_DEVICE) || \
index 956151052d45422d64790b99fdd9b3ec8637a240..199d85285246054e5b0099abedfd7817c24eaa90 100644 (file)
@@ -558,13 +558,6 @@ static inline int dma_mmap_wc(struct device *dev,
 #define dma_unmap_len_set(PTR, LEN_NAME, VAL)    do { } while (0)
 #endif
 
-/*
- * Legacy interface to set up the dma offset map.  Drivers really should not
- * actually use it, but we have a few legacy cases left.
- */
-int dma_direct_set_offset(struct device *dev, phys_addr_t cpu_start,
-               dma_addr_t dma_start, u64 size);
-
 extern const struct dma_map_ops dma_virt_ops;
 
 #endif /* _LINUX_DMA_MAPPING_H */
index 06c111544f61d630c79d722111e8b0e573de8782..002268262c9ad8e20fc1e6c1f0bb986981e58acf 100644 (file)
@@ -547,4 +547,3 @@ int dma_direct_set_offset(struct device *dev, phys_addr_t cpu_start,
        dev->dma_range_map = map;
        return 0;
 }
-EXPORT_SYMBOL_GPL(dma_direct_set_offset);