ANDROID: GKI: kernel/dma, mm/cma: Export symbols needed by vendor modules
This allows them to work with a GKI kernel. Bug: 140651649 Bug: 140651863 Change-Id: I41ae14d90df31d552b2a0eab89a20d7ba8a9243d Signed-off-by: Tri Vo <trong@google.com> [saravanak partial cherry-pick and dropped a ton of changes] Signed-off-by: Saravana Kannan <saravanak@google.com>
This commit is contained in:
parent
0a81e68654
commit
e64d8dcc68
2 changed files with 3 additions and 0 deletions
|
@ -31,6 +31,7 @@
|
|||
#endif
|
||||
|
||||
struct cma *dma_contiguous_default_area;
|
||||
EXPORT_SYMBOL(dma_contiguous_default_area);
|
||||
|
||||
/*
|
||||
* Default global CMA area size can be defined in kernel's .config.
|
||||
|
|
2
mm/cma.c
2
mm/cma.c
|
@ -48,11 +48,13 @@ phys_addr_t cma_get_base(const struct cma *cma)
|
|||
{
|
||||
return PFN_PHYS(cma->base_pfn);
|
||||
}
|
||||
EXPORT_SYMBOL(cma_get_base);
|
||||
|
||||
unsigned long cma_get_size(const struct cma *cma)
|
||||
{
|
||||
return cma->count << PAGE_SHIFT;
|
||||
}
|
||||
EXPORT_SYMBOL(cma_get_size);
|
||||
|
||||
const char *cma_get_name(const struct cma *cma)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue