Message ID | 20231109074545.148149-1-contact@emersion.fr (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [RFC,1/2] dma-buf/dma-heap: export dma_heap_add and dma_heap_get_drvdata | expand |
diff --git a/drivers/dma-buf/dma-heap.c b/drivers/dma-buf/dma-heap.c index 84ae708fafe7..51cd58b775d8 100644 --- a/drivers/dma-buf/dma-heap.c +++ b/drivers/dma-buf/dma-heap.c @@ -203,6 +203,7 @@ void *dma_heap_get_drvdata(struct dma_heap *heap) { return heap->priv; } +EXPORT_SYMBOL_GPL(dma_heap_get_drvdata); /** * dma_heap_get_name() - get heap name @@ -300,6 +301,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(const struct device *dev, umode_t *mode) {
This is necessary to create DMA heaps in other modules (e.g. graphics drivers). Signed-off-by: Simon Ser <contact@emersion.fr> Cc: Sumit Semwal <sumit.semwal@linaro.org> Cc: Benjamin Gaignard <benjamin.gaignard@collabora.com> Cc: Brian Starkey <Brian.Starkey@arm.com> Cc: John Stultz <jstultz@google.com> Cc: "T.J. Mercier" <tjmercier@google.com> --- drivers/dma-buf/dma-heap.c | 2 ++ 1 file changed, 2 insertions(+)