[PATCH v8 09/14] cma: export cma_alloc() and cma_release()
From: Jens Wiklander
Date: Fri May 02 2025 - 06:03:58 EST
Export the two functions cma_alloc() and cma_release().
Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Cc: linux-mm@xxxxxxxxx
Cc: linux-kernel@xxxxxxxxxxxxxxx
Signed-off-by: Jens Wiklander <jens.wiklander@xxxxxxxxxx>
---
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