linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] mm: cma: export functions to get CMA base and size
@ 2019-05-29 10:43 Lucas Stach
  2019-05-29 10:43 ` [PATCH 2/2] drm/etnaviv: use CMA area to compute linear window offset if possible Lucas Stach
  2019-05-30  6:26 ` [PATCH 1/2] mm: cma: export functions to get CMA base and size Christoph Hellwig
  0 siblings, 2 replies; 4+ messages in thread
From: Lucas Stach @ 2019-05-29 10:43 UTC (permalink / raw)
  To: Andrew Morton, Yue Hu, Michał Nazarewicz, Marek Szyprowski,
	Dmitry Vyukov
  Cc: etnaviv, dri-devel, linux-mm, kernel, patchwork-lst

Make them usable in modules. Some drivers want to know where their
device CMA area is located to make better decisions about the DMA
programming.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
 mm/cma.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/mm/cma.c b/mm/cma.c
index 3340ef34c154..191c89bf038d 100644
--- a/mm/cma.c
+++ b/mm/cma.c
@@ -44,11 +44,13 @@ phys_addr_t cma_get_base(const struct cma *cma)
 {
 	return PFN_PHYS(cma->base_pfn);
 }
+EXPORT_SYMBOL_GPL(cma_get_base);
 
 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)
 {
-- 
2.20.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-05-03  7:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-29 10:43 [PATCH 1/2] mm: cma: export functions to get CMA base and size Lucas Stach
2019-05-29 10:43 ` [PATCH 2/2] drm/etnaviv: use CMA area to compute linear window offset if possible Lucas Stach
2021-05-03  7:46   ` Primoz Fiser
2019-05-30  6:26 ` [PATCH 1/2] mm: cma: export functions to get CMA base and size Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox