dma-mapping: remove the dma_declare_coherent_memory export
authorChristoph Hellwig <hch@lst.de>
Fri, 30 Aug 2019 06:48:27 +0000 (08:48 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 4 Sep 2019 09:13:19 +0000 (11:13 +0200)
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 <hch@lst.de>
kernel/dma/coherent.c

index 7cafe1affdc97aa4b89d0e1069eb2c9544adb0a1..545e3869b0e3214e60dd1bc24488e00e039b4b6b 100644 (file)
@@ -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)