From: Maxime Ripard Date: Tue, 31 Mar 2026 10:00:13 +0000 (+0200) Subject: dma: contiguous: Export dev_get_cma_area() X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6207948f389ec1b938a39aa43fb4aedd58d65e0d;p=thirdparty%2Fkernel%2Flinux.git dma: contiguous: Export dev_get_cma_area() The CMA dma-buf heap uses the dev_get_cma_area() function to retrieve the default contiguous area. Now that this function is no longer inlined, and since we want to turn the CMA heap into a module, let's export it. Signed-off-by: Maxime Ripard Signed-off-by: Marek Szyprowski Link: https://lore.kernel.org/r/20260331-dma-buf-heaps-as-modules-v4-4-e18fda504419@kernel.org --- diff --git a/kernel/dma/contiguous.c b/kernel/dma/contiguous.c index fd8d3518a2323..83a5bd9488e14 100644 --- a/kernel/dma/contiguous.c +++ b/kernel/dma/contiguous.c @@ -138,6 +138,7 @@ struct cma *dev_get_cma_area(struct device *dev) return dma_contiguous_default_area; } +EXPORT_SYMBOL_GPL(dev_get_cma_area); #ifdef CONFIG_DMA_NUMA_CMA