Skip to content

Commit e20c507

Browse files
Christoph Hellwigpaulburton
authored andcommitted
MIPS: Octeon: unexport __phys_to_dma and __dma_to_phys
These functions are just low-level helpers for the swiotlb and dma-direct implementations, and should never be used by drivers. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Paul Burton <paul.burton@mips.com> Patchwork: https://patchwork.linux-mips.org/patch/19531/ Signed-off-by: Paul Burton <paul.burton@mips.com> Cc: Florian Fainelli <f.fainelli@gmail.com> Cc: David Daney <david.daney@cavium.com> Cc: Kevin Cernekee <cernekee@gmail.com> Cc: Jiaxun Yang <jiaxun.yang@flygoat.com> Cc: Tom Bogendoerfer <tsbogend@alpha.franken.de> Cc: Huacai Chen <chenhc@lemote.com> Cc: iommu@lists.linux-foundation.org Cc: linux-mips@linux-mips.org
1 parent 7e4dbdc commit e20c507

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

arch/mips/cavium-octeon/dma-octeon.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#include <linux/dma-direct.h>
1414
#include <linux/scatterlist.h>
1515
#include <linux/bootmem.h>
16-
#include <linux/export.h>
1716
#include <linux/swiotlb.h>
1817
#include <linux/types.h>
1918
#include <linux/init.h>
@@ -190,7 +189,6 @@ dma_addr_t __phys_to_dma(struct device *dev, phys_addr_t paddr)
190189

191190
return ops->phys_to_dma(dev, paddr);
192191
}
193-
EXPORT_SYMBOL(__phys_to_dma);
194192

195193
phys_addr_t __dma_to_phys(struct device *dev, dma_addr_t daddr)
196194
{
@@ -200,7 +198,6 @@ phys_addr_t __dma_to_phys(struct device *dev, dma_addr_t daddr)
200198

201199
return ops->dma_to_phys(dev, daddr);
202200
}
203-
EXPORT_SYMBOL(__dma_to_phys);
204201

205202
static struct octeon_dma_map_ops octeon_linear_dma_map_ops = {
206203
.dma_map_ops = {

0 commit comments

Comments
 (0)