From e64d8dcc68097a821ee4a4917c91f71aa21adcb5 Mon Sep 17 00:00:00 2001 From: Tri Vo Date: Mon, 16 Sep 2019 10:53:50 -0700 Subject: [PATCH] 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 [saravanak partial cherry-pick and dropped a ton of changes] Signed-off-by: Saravana Kannan --- kernel/dma/contiguous.c | 1 + mm/cma.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/kernel/dma/contiguous.c b/kernel/dma/contiguous.c index b2a87905846d..e8c214d14808 100644 --- a/kernel/dma/contiguous.c +++ b/kernel/dma/contiguous.c @@ -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. diff --git a/mm/cma.c b/mm/cma.c index 9516e7694d91..e2b95d4fdebc 100644 --- a/mm/cma.c +++ b/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) {