Skip to content

Commit 633040f

Browse files
mripardmszyprow
authored andcommitted
dma: contiguous: Make dma_contiguous_default_area static
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
1 parent b3707be commit 633040f

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

include/linux/dma-map-ops.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,6 @@ static inline void set_dma_ops(struct device *dev,
9191
#endif /* CONFIG_ARCH_HAS_DMA_OPS */
9292

9393
#ifdef CONFIG_DMA_CMA
94-
extern struct cma *dma_contiguous_default_area;
95-
9694
struct cma *dev_get_cma_area(struct device *dev);
9795
struct cma *dma_contiguous_get_area_by_idx(unsigned int idx);
9896

kernel/dma/contiguous.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ struct cma *dma_contiguous_get_area_by_idx(unsigned int idx)
8383
}
8484
EXPORT_SYMBOL_GPL(dma_contiguous_get_area_by_idx);
8585

86-
struct cma *dma_contiguous_default_area;
86+
static struct cma *dma_contiguous_default_area;
8787

8888
/*
8989
* Default global CMA area size can be defined in kernel's .config.

0 commit comments

Comments
 (0)