aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Gunthorpe <[email protected]>2019-10-28 17:10:25 -0300
committerJuergen Gross <[email protected]>2019-11-07 12:03:38 +0100
commitfa6614d8ef13c63aac52ad7c07c5e69ce4aba3dd (patch)
treef352631579c525764d273b80b1ce2757f401becb
parent88920ddebd2f4afe67eb39a9fe3661275e6e3e2d (diff)
xen/gntdev: Use select for DMA_SHARED_BUFFER
DMA_SHARED_BUFFER can not be enabled by the user (it represents a library set in the kernel). The kconfig convention is to use select for such symbols so they are turned on implicitly when the user enables a kconfig that needs them. Otherwise the XEN_GNTDEV_DMABUF kconfig is overly difficult to enable. Fixes: 932d6562179e ("xen/gntdev: Add initial support for dma-buf UAPI") Cc: Oleksandr Andrushchenko <[email protected]> Cc: Boris Ostrovsky <[email protected]> Cc: [email protected] Cc: Juergen Gross <[email protected]> Cc: Stefano Stabellini <[email protected]> Reviewed-by: Juergen Gross <[email protected]> Reviewed-by: Oleksandr Andrushchenko <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]> Signed-off-by: Juergen Gross <[email protected]>
-rw-r--r--drivers/xen/Kconfig3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/xen/Kconfig b/drivers/xen/Kconfig
index 79cc75096f42..a50dadd01093 100644
--- a/drivers/xen/Kconfig
+++ b/drivers/xen/Kconfig
@@ -141,7 +141,8 @@ config XEN_GNTDEV
config XEN_GNTDEV_DMABUF
bool "Add support for dma-buf grant access device driver extension"
- depends on XEN_GNTDEV && XEN_GRANT_DMA_ALLOC && DMA_SHARED_BUFFER
+ depends on XEN_GNTDEV && XEN_GRANT_DMA_ALLOC
+ select DMA_SHARED_BUFFER
help
Allows userspace processes and kernel modules to use Xen backed
dma-buf implementation. With this extension grant references to