[PATCH v8 09/14] cma: export cma_alloc() and cma_release()
Jens Wiklander
jens.wiklander at linaro.org
Fri May 2 09:59:23 UTC 2025
Export the two functions cma_alloc() and cma_release().
Cc: Andrew Morton <akpm at linux-foundation.org>
Cc: linux-mm at kvack.org
Cc: linux-kernel at vger.kernel.org
Signed-off-by: Jens Wiklander <jens.wiklander at linaro.org>
---
mm/cma.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/mm/cma.c b/mm/cma.c
index 15632939f20a..c60901e73a26 100644
--- a/mm/cma.c
+++ b/mm/cma.c
@@ -915,6 +915,7 @@ struct page *cma_alloc(struct cma *cma, unsigned long count,
{
return __cma_alloc(cma, count, align, GFP_KERNEL | (no_warn ? __GFP_NOWARN : 0));
}
+EXPORT_SYMBOL(cma_alloc);
struct folio *cma_alloc_folio(struct cma *cma, int order, gfp_t gfp)
{
@@ -1002,6 +1003,7 @@ bool cma_release(struct cma *cma, const struct page *pages,
return true;
}
+EXPORT_SYMBOL(cma_release);
bool cma_free_folio(struct cma *cma, const struct folio *folio)
{
--
2.43.0
More information about the dri-devel
mailing list