aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/dma-direct.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-09-08 17:56:22 +0200
committerChristoph Hellwig <hch@lst.de>2020-09-11 09:14:25 +0200
commit7bc5c428a660d4d1bc95ba54bf4cb6bccf8c3029 (patch)
tree306eb3d7befdec2da08f45e88e2dd2aaf6e5a5a1 /arch/arm/include/asm/dma-direct.h
parentdma-direct: use phys_to_dma_direct in dma_direct_alloc (diff)
downloadlinux-dev-7bc5c428a660d4d1bc95ba54bf4cb6bccf8c3029.tar.xz
linux-dev-7bc5c428a660d4d1bc95ba54bf4cb6bccf8c3029.zip
dma-direct: remove __dma_to_phys
There is no harm in just always clearing the SME encryption bit, while significantly simplifying the interface. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Diffstat (limited to 'arch/arm/include/asm/dma-direct.h')
-rw-r--r--arch/arm/include/asm/dma-direct.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/include/asm/dma-direct.h b/arch/arm/include/asm/dma-direct.h
index 7c3001a6a775..a8cee87a93e8 100644
--- a/arch/arm/include/asm/dma-direct.h
+++ b/arch/arm/include/asm/dma-direct.h
@@ -8,7 +8,7 @@ static inline dma_addr_t __phys_to_dma(struct device *dev, phys_addr_t paddr)
return pfn_to_dma(dev, __phys_to_pfn(paddr)) + offset;
}
-static inline phys_addr_t __dma_to_phys(struct device *dev, dma_addr_t dev_addr)
+static inline phys_addr_t dma_to_phys(struct device *dev, dma_addr_t dev_addr)
{
unsigned int offset = dev_addr & ~PAGE_MASK;
return __pfn_to_phys(dma_to_pfn(dev, dev_addr)) + offset;