udmabuf: add MEMFD_CREATE dependency
authorGerd Hoffmann <[email protected]>
Tue, 11 Sep 2018 13:42:09 +0000 (15:42 +0200)
committerGerd Hoffmann <[email protected]>
Wed, 12 Sep 2018 06:21:30 +0000 (08:21 +0200)
udmabuf builds without it, but if userspace can not create memfd
handles in the first place it is rather pointless to include it,
except for test builds.

Signed-off-by: Gerd Hoffmann <[email protected]>
Acked-by: Daniel Vetter <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/dma-buf/Kconfig

index 338129eb126f2407f5aafaab783943e6002dd74d..2e5a0faa2cb10d58c0c071f8a5c588769e0f82e2 100644 (file)
@@ -34,6 +34,7 @@ config UDMABUF
        bool "userspace dmabuf misc driver"
        default n
        depends on DMA_SHARED_BUFFER
+       depends on MEMFD_CREATE || COMPILE_TEST
        help
          A driver to let userspace turn memfd regions into dma-bufs.
          Qemu can use this to create host dmabufs for guest framebuffers.