]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dma: contiguous: Make dma_contiguous_default_area static
authorMaxime Ripard <mripard@kernel.org>
Tue, 31 Mar 2026 10:00:12 +0000 (12:00 +0200)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 31 Mar 2026 11:27:20 +0000 (13:27 +0200)
Now that dev_get_cma_area() is no longer inline, we don't have any user
of dma_contiguous_default_area() outside of contiguous.c so we can make
it static.

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-3-e18fda504419@kernel.org
include/linux/dma-map-ops.h
kernel/dma/contiguous.c

index 8604106c0c01b6a9dadc45263f3b1d9ecfacd4aa..bef279ebeae7de59dd504e631f47c64d7e223736 100644 (file)
@@ -91,8 +91,6 @@ static inline void set_dma_ops(struct device *dev,
 #endif /* CONFIG_ARCH_HAS_DMA_OPS */
 
 #ifdef CONFIG_DMA_CMA
-extern struct cma *dma_contiguous_default_area;
-
 struct cma *dev_get_cma_area(struct device *dev);
 struct cma *dma_contiguous_get_area_by_idx(unsigned int idx);
 
index 40a0ead24979cfdf25e4779545536a5438e26356..fd8d3518a2323f0a631fb185ef92a24c35f8d25d 100644 (file)
@@ -83,7 +83,7 @@ struct cma *dma_contiguous_get_area_by_idx(unsigned int idx)
 }
 EXPORT_SYMBOL_GPL(dma_contiguous_get_area_by_idx);
 
-struct cma *dma_contiguous_default_area;
+static struct cma *dma_contiguous_default_area;
 
 /*
  * Default global CMA area size can be defined in kernel's .config.