From bb7b81497d2fea78bff20b3e2defeb7379fb09bb 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 Signed-off-by: Richard Chang (cherry picked from commit 7a44906686048bdcecb7dfa4fac02c4ad7f6cd06) --- mm/cma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/cma.c b/mm/cma.c index 7d105a8050c0..29e8178c640a 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) {