]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dma: contiguous: Export dev_get_cma_area()
authorMaxime Ripard <mripard@kernel.org>
Tue, 31 Mar 2026 10:00:13 +0000 (12:00 +0200)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 31 Mar 2026 11:27:20 +0000 (13:27 +0200)
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 <mripard@kernel.org>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Link: https://lore.kernel.org/r/20260331-dma-buf-heaps-as-modules-v4-4-e18fda504419@kernel.org
kernel/dma/contiguous.c

index fd8d3518a2323f0a631fb185ef92a24c35f8d25d..83a5bd9488e1448cc72e92ed204ce804164cc6b8 100644 (file)
@@ -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