You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
ANDROID: GKI: export cma symbols for cma heap as a module
Bug: 140294230 Test: builds Change-Id: I04c12174934c24a704d5c1e5be3e7e948c777a78 Signed-off-by: Sandeep Patil <sspatil@google.com>
This commit is contained in:
5
mm/cma.c
5
mm/cma.c
@@ -24,6 +24,7 @@
|
||||
#include <linux/memblock.h>
|
||||
#include <linux/err.h>
|
||||
#include <linux/mm.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/sizes.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/log2.h>
|
||||
@@ -53,6 +54,7 @@ const char *cma_get_name(const struct cma *cma)
|
||||
{
|
||||
return cma->name;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(cma_get_name);
|
||||
|
||||
static unsigned long cma_bitmap_aligned_mask(const struct cma *cma,
|
||||
unsigned int align_order)
|
||||
@@ -542,6 +544,7 @@ out:
|
||||
|
||||
return page;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(cma_alloc);
|
||||
|
||||
bool cma_pages_valid(struct cma *cma, const struct page *pages,
|
||||
unsigned long count)
|
||||
@@ -592,6 +595,7 @@ bool cma_release(struct cma *cma, const struct page *pages,
|
||||
|
||||
return true;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(cma_release);
|
||||
|
||||
#ifdef CONFIG_NO_GKI
|
||||
unsigned long cma_used_pages(void)
|
||||
@@ -626,3 +630,4 @@ int cma_for_each_area(int (*it)(struct cma *cma, void *data), void *data)
|
||||
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(cma_for_each_area);
|
||||
|
||||
Reference in New Issue
Block a user