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 <minchan@google.com>
Change-Id: Ifb2769f60250ce605236342b950907218e1c28a5
This commit is contained in:
Minchan Kim
2022-02-10 14:02:04 -08:00
parent 00e3210a2f
commit 7a44906686

View File

@@ -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)
{