From 2e30de907aba2128fab397a6a4292eadc347e3ee Mon Sep 17 00:00:00 2001 From: Jiacheng Mei Date: Tue, 29 May 2018 15:22:58 +0800 Subject: [PATCH] base: EXPORT_SYMBOL for dma_alloc_from_contiguous && dma_release_from_contiguous PD#165090: EXPORT_SYMBOL for dma_alloc_from_contiguous && dma_release_from_contiguous Change-Id: I3809ed9a393e99fad9c63e3cbc60003de2ed8748 Signed-off-by: Jiacheng Mei --- drivers/base/dma-contiguous.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/base/dma-contiguous.c b/drivers/base/dma-contiguous.c index e167a1e1bccb..e4e36df68280 100644 --- a/drivers/base/dma-contiguous.c +++ b/drivers/base/dma-contiguous.c @@ -195,6 +195,7 @@ struct page *dma_alloc_from_contiguous(struct device *dev, size_t count, return cma_alloc(dev_get_cma_area(dev), count, align); } +EXPORT_SYMBOL(dma_alloc_from_contiguous); /** * dma_release_from_contiguous() - release allocated pages @@ -211,7 +212,7 @@ bool dma_release_from_contiguous(struct device *dev, struct page *pages, { return cma_release(dev_get_cma_area(dev), pages, count); } - +EXPORT_SYMBOL(dma_release_from_contiguous); /* * Support for reserved memory regions defined in device tree */