History

dma-mapping: remove the dma_direct_set_offset export

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.

Christoph Hellwig committed 6 years ago

Commit 16fee291 parent 57393017 files · +8 −12Browse files

Unified · Split

7 files
  1. arch/arm/mach-keystone/keystone.c +1 −1
  2. arch/arm/mach-omap1/usb.c +1 −1
  3. arch/sh/drivers/pci/pcie-sh7786.c +1 −1
  4. arch/x86/pci/sta2x11-fixup.c +2 −1
  5. include/linux/dma-map-ops.h +3 −0
  6. include/linux/dma-mapping.h +0 −7
  7. kernel/dma/direct.c +0 −1
arch/arm/mach-keystone/keystone.c+1−1
@@ -8,7 +8,7 @@ · 7 unmodified lines
88 */
99 #include <linux/io.h>
1010 #include <linux/of.h>
11−#include <linux/dma-mapping.h>
11+#include <linux/dma-map-ops.h>
1212 #include <linux/init.h>
1313 #include <linux/of_platform.h>
1414 #include <linux/of_address.h>
arch/arm/mach-omap1/usb.c+1−1
@@ -9,7 +9,7 @@ · 8 unmodified lines
99 #include <linux/kernel.h>
1010 #include <linux/init.h>
1111 #include <linux/platform_device.h>
12−#include <linux/dma-mapping.h>
12+#include <linux/dma-map-ops.h>
1313 #include <linux/io.h>
1414
1515 #include <asm/irq.h>
arch/sh/drivers/pci/pcie-sh7786.c+1−1
@@ -12,7 +12,7 @@ · 11 unmodified lines
1212 #include <linux/io.h>
1313 #include <linux/async.h>
1414 #include <linux/delay.h>
15−#include <linux/dma-mapping.h>
15+#include <linux/dma-map-ops.h>
1616 #include <linux/slab.h>
1717 #include <linux/clk.h>
1818 #include <linux/sh_clk.h>
arch/x86/pci/sta2x11-fixup.c+2−1
@@ -11,7 +11,8 @@ · 10 unmodified lines
1111 #include <linux/pci_ids.h>
1212 #include <linux/export.h>
1313 #include <linux/list.h>
14−#include <linux/dma-direct.h>
14+#include <linux/dma-map-ops.h>
15+#include <linux/swiotlb.h>
1516 #include <asm/iommu.h>
1617
1718 #define STA2X11_SWIOTLB_SIZE (4*1024*1024)
include/linux/dma-map-ops.h+3−0
@@ -226,6 +226,9 @@ struct page *dma_alloc_from_pool(struct device *dev, size_t size, · 225 unmodified lines
226226 bool (*phys_addr_ok)(struct device *, phys_addr_t, size_t));
227227 bool dma_free_from_pool(struct device *dev, void *start, size_t size);
228228
229+int dma_direct_set_offset(struct device *dev, phys_addr_t cpu_start,
230+ dma_addr_t dma_start, u64 size);
231+
229232 #ifdef CONFIG_ARCH_HAS_DMA_COHERENCE_H
230233 #include <asm/dma-coherence.h>
231234 #elif defined(CONFIG_ARCH_HAS_SYNC_DMA_FOR_DEVICE) || \
include/linux/dma-mapping.h+0−7
@@ -558,13 +558,6 @@ static inline int dma_mmap_wc(struct device *dev, · 557 unmodified lines
558558 #define dma_unmap_len_set(PTR, LEN_NAME, VAL) do { } while (0)
559559 #endif
560560
561−/*
562− * Legacy interface to set up the dma offset map. Drivers really should not
563− * actually use it, but we have a few legacy cases left.
564− */
565−int dma_direct_set_offset(struct device *dev, phys_addr_t cpu_start,
566− dma_addr_t dma_start, u64 size);
567−
568561 extern const struct dma_map_ops dma_virt_ops;
569562
570563 #endif /* _LINUX_DMA_MAPPING_H */
kernel/dma/direct.c+0−1
@@ -547,4 +547,3 @@ int dma_direct_set_offset(struct device *dev, phys_addr_t cpu_start, · 546 unmodified lines
547547 dev->dma_range_map = map;
548548 return 0;
549549 }
550−EXPORT_SYMBOL_GPL(dma_direct_set_offset);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t