dma/coherent: remove unused dma_get_device_base()
PATCH 1/1 dma/coherent: remove unused dma_get_device_base()
dma_get_device_base() was first introduced in the commit c41f9ea998f3 ("drivers: dma-coherent: Account dma_pfn_offset when used with device tree"). Later, it was removed by the commit 43fc509c3efb ("dma-coherent:
introduce interface for default DMA pool")
Found by the -Wunused-function compilation warning.
--- kernel/dma/coherent.c | 9 --------- 1 file changed, 9 deletions(-)
kernel/dma/coherent.c +0 -9
@@ -28,15 +28,6 @@ static inline struct dma_coherent_mem *dev_get_coherent_memory(struct device *dereturn NULL ; } -static inline dma_addr_t dma_get_device_base (struct device *dev, -struct dma_coherent_mem * mem) -{ -if (mem->use_dev_dma_pfn_offset) -return (mem->pfn_base - dev->dma_pfn_offset) <<PAGE_SHIFT ; -else -return mem->device_base; -} -static int dma_init_coherent_memory (phys_addr_t phys_addr,dma_addr_t device_addr,size_t size,struct dma_coherent_mem **mem)
Signature · 1 line
1.8.3.1
Ping. Please take a look at this trivial patch.
Quoted 32 lines · Qian Cai
dma_get_device_base()was first introduced in the commitc41f9ea998f3("drivers: dma-coherent: Accountdma_pfn_offsetwhen used with device tree"). Later, it was removed by the commit43fc509c3efb("dma-coherent:
introduce interface for default DMA pool")Found by the -Wunused-function compilation warning.
Signed-off-by Qian Cai <[email protected]>--- kernel/dma/coherent.c | 9 --------- 1 file changed, 9 deletions(-)kernel/dma/coherent.c +0
-9@@ -28,15 +28,6 @@ static inline struct dma_coherent_mem *dev_get_coherent_memory(struct device *dereturn NULL ; } -static inline dma_addr_t dma_get_device_base (struct device *dev, -struct dma_coherent_mem * mem) -{ -if (mem->use_dev_dma_pfn_offset) -return (mem->pfn_base - dev->dma_pfn_offset) <<PAGE_SHIFT ; -else -return mem->device_base; -} -static int dma_init_coherent_memory (phys_addr_t phys_addr,dma_addr_t device_addr,size_t size,struct dma_coherent_mem **mem)
Quoted 1 line · Qian Cai
Ping. Please take a look at this trivial patch.
No need to rush. We just had the 5.4 merge window closing. I'll queue this up in the dma-mapping for-next tree for 5.5 once I open it.
So it turns out the user now showed up, so I'm skipping this patch.
_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu