Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dma-buf: dma-heap: export declared functions

Export the dma-buf heap functions to allow them to be used by the OP-TEE
driver. The OP-TEE driver wants to register and manage specific secure
DMA heaps with it.

Reviewed-by: Sumit Garg <sumit.garg@oss.qualcomm.com>
Reviewed-by: T.J. Mercier <tjmercier@google.com>
Acked-by: Sumit Semwal <sumit.semwal@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>

+4
+4
drivers/dma-buf/dma-heap.c
··· 11 11 #include <linux/dma-buf.h> 12 12 #include <linux/dma-heap.h> 13 13 #include <linux/err.h> 14 + #include <linux/export.h> 14 15 #include <linux/list.h> 15 16 #include <linux/nospec.h> 16 17 #include <linux/syscalls.h> ··· 203 202 { 204 203 return heap->priv; 205 204 } 205 + EXPORT_SYMBOL_NS_GPL(dma_heap_get_drvdata, "DMA_BUF_HEAP"); 206 206 207 207 /** 208 208 * dma_heap_get_name - get heap name ··· 216 214 { 217 215 return heap->name; 218 216 } 217 + EXPORT_SYMBOL_NS_GPL(dma_heap_get_name, "DMA_BUF_HEAP"); 219 218 220 219 /** 221 220 * dma_heap_add - adds a heap to dmabuf heaps ··· 306 303 kfree(heap); 307 304 return err_ret; 308 305 } 306 + EXPORT_SYMBOL_NS_GPL(dma_heap_add, "DMA_BUF_HEAP"); 309 307 310 308 static char *dma_heap_devnode(const struct device *dev, umode_t *mode) 311 309 {