This commit follows commut
bdaed72c4 ("dma-buf: introduce dma-buf
container"). dma-buf container has been excluded from the kernel build
until the dmabuf container support by ION is removed by commit
e4af6c288 ("android: ion: remove linux/dmabuf_container.h") not to
cause kernel build break.
Change-Id: Id0d3e7f82ace28622efbbbd4e5fa263076059109
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
WARNING: improper use of this can result in deadlocking kernel
drivers from userspace. Intended for test and debug only.
+config DMA_BUF_CONTAINER
+ bool "dma-buf container support"
+ default y
+ depends on DMA_SHARED_BUFFER
+ ---help---
+ dma-buf container is a dma-buf that can contain multiple different
+ dma-buf objects. It is useful when delivering a lot of dma-buf objects
+ between processes or user and kernel to reduce communication overhead.
+
endmenu
obj-y := dma-buf.o dma-fence.o dma-fence-array.o reservation.o seqno-fence.o
obj-$(CONFIG_SYNC_FILE) += sync_file.o
obj-$(CONFIG_SW_SYNC) += sw_sync.o sync_debug.o
+obj-$(CONFIG_DMA_BUF_CONTAINER) += dma-buf-container.o
#ifdef CONFIG_DMA_BUF_CONTAINER
struct dma_buf *dma_buf_get_any(int fd);
+#else
+static inline struct dma_buf *dma_buf_get_any(int fd)
+{
+ return dma_buf_get(fd);
+}
#endif