From 7a44906686048bdcecb7dfa4fac02c4ad7f6cd06 Mon Sep 17 00:00:00 2001 From: Minchan Kim Date: Thu, 10 Feb 2022 14:02:04 -0800 Subject: [PATCH] ANDROID: GKI: export cma_get_size Export cma_get_size to tell cma instance's size, which is needed to allocate entire pages of the cma. Bug: 218731671 Signed-off-by: Minchan Kim Change-Id: Ifb2769f60250ce605236342b950907218e1c28a5 --- mm/cma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/cma.c b/mm/cma.c index 47538607045e..ae36ce52c215 100644 --- a/mm/cma.c +++ b/mm/cma.c @@ -54,6 +54,7 @@ unsigned long cma_get_size(const struct cma *cma) { return cma->count << PAGE_SHIFT; } +EXPORT_SYMBOL_GPL(cma_get_size); const char *cma_get_name(const struct cma *cma) {