From: Christoph Hellwig Date: Fri, 30 Aug 2019 06:48:27 +0000 (+0200) Subject: dma-mapping: remove the dma_declare_coherent_memory export X-Git-Tag: v5.4-rc1~113^2~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9295532d5725e5926d76470acdfd239c8d2aad3;p=thirdparty%2Fkernel%2Flinux.git dma-mapping: remove the dma_declare_coherent_memory export dma_declare_coherent_memory is something that the platform setup code (which pretty much means the device tree these days) need to do so that drivers can use the memory as declared by the platform. Drivers themselves have no business calling this function. Signed-off-by: Christoph Hellwig --- diff --git a/kernel/dma/coherent.c b/kernel/dma/coherent.c index 7cafe1affdc97..545e3869b0e32 100644 --- a/kernel/dma/coherent.c +++ b/kernel/dma/coherent.c @@ -122,7 +122,6 @@ int dma_declare_coherent_memory(struct device *dev, phys_addr_t phys_addr, dma_release_coherent_memory(mem); return ret; } -EXPORT_SYMBOL(dma_declare_coherent_memory); static void *__dma_alloc_from_coherent(struct dma_coherent_mem *mem, ssize_t size, dma_addr_t *dma_handle)