[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200818080415.7531-2-hyesoo.yu@samsung.com>
Date: Tue, 18 Aug 2020 17:04:13 +0900
From: Hyesoo Yu <hyesoo.yu@...sung.com>
To: sumit.semwal@...aro.org
Cc: minchan@...nel.org, akpm@...ux-foundation.org,
iamjoonsoo.kim@....com, joaodias@...gle.com, linux-mm@...ck.org,
pullip.cho@...sung.com, surenb@...gle.com, vbabka@...e.cz,
afd@...com, benjamin.gaignard@...aro.org, lmark@...eaurora.org,
labbott@...hat.com, Brian.Starkey@....com, john.stultz@...aro.org,
christian.koenig@....com, linux-media@...r.kernel.org,
dri-devel@...ts.freedesktop.org, linaro-mm-sig@...ts.linaro.org,
linux-kernel@...r.kernel.org, robh+dt@...nel.org,
devicetree@...r.kernel.org, Hyesoo Yu <hyesoo.yu@...sung.com>
Subject: [PATCH 1/3] dma-buf: add missing EXPORT_SYMBOL_GPL() for dma heaps
The interface of dma heap is used from kernel module to
register dma heaps, otherwize we will get compile error.
Signed-off-by: Hyesoo Yu <hyesoo.yu@...sung.com>
---
drivers/dma-buf/dma-heap.c | 2 ++
drivers/dma-buf/heaps/heap-helpers.c | 2 ++
2 files changed, 4 insertions(+)
diff --git a/drivers/dma-buf/dma-heap.c b/drivers/dma-buf/dma-heap.c
index afd22c9..cc6339c 100644
--- a/drivers/dma-buf/dma-heap.c
+++ b/drivers/dma-buf/dma-heap.c
@@ -189,6 +189,7 @@ void *dma_heap_get_drvdata(struct dma_heap *heap)
{
return heap->priv;
}
+EXPORT_SYMBOL_GPL(dma_heap_get_drvdata);
struct dma_heap *dma_heap_add(const struct dma_heap_export_info *exp_info)
{
@@ -272,6 +273,7 @@ struct dma_heap *dma_heap_add(const struct dma_heap_export_info *exp_info)
kfree(heap);
return err_ret;
}
+EXPORT_SYMBOL_GPL(dma_heap_add);
static char *dma_heap_devnode(struct device *dev, umode_t *mode)
{
diff --git a/drivers/dma-buf/heaps/heap-helpers.c b/drivers/dma-buf/heaps/heap-helpers.c
index 9f964ca..741bae0 100644
--- a/drivers/dma-buf/heaps/heap-helpers.c
+++ b/drivers/dma-buf/heaps/heap-helpers.c
@@ -24,6 +24,7 @@ void init_heap_helper_buffer(struct heap_helper_buffer *buffer,
INIT_LIST_HEAD(&buffer->attachments);
buffer->free = free;
}
+EXPORT_SYMBOL_GPL(init_heap_helper_buffer);
struct dma_buf *heap_helper_export_dmabuf(struct heap_helper_buffer *buffer,
int fd_flags)
@@ -37,6 +38,7 @@ struct dma_buf *heap_helper_export_dmabuf(struct heap_helper_buffer *buffer,
return dma_buf_export(&exp_info);
}
+EXPORT_SYMBOL_GPL(heap_helper_export_dmabuf);
static void *dma_heap_map_kernel(struct heap_helper_buffer *buffer)
{
--
2.7.4
Powered by blists - more mailing lists