Skip to content

Commit fa6614d

Browse files
jgunthorpejgross1
authored andcommitted
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: 932d656 ("xen/gntdev: Add initial support for dma-buf UAPI") Cc: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com> Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com> Cc: xen-devel@lists.xenproject.org Cc: Juergen Gross <jgross@suse.com> Cc: Stefano Stabellini <sstabellini@kernel.org> Reviewed-by: Juergen Gross <jgross@suse.com> Reviewed-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com> Signed-off-by: Juergen Gross <jgross@suse.com>
1 parent 88920dd commit fa6614d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎drivers/xen/Kconfig‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ config XEN_GNTDEV
141141

142142
config XEN_GNTDEV_DMABUF
143143
bool "Add support for dma-buf grant access device driver extension"
144-
depends on XEN_GNTDEV && XEN_GRANT_DMA_ALLOC && DMA_SHARED_BUFFER
144+
depends on XEN_GNTDEV && XEN_GRANT_DMA_ALLOC
145+
select DMA_SHARED_BUFFER
145146
help
146147
Allows userspace processes and kernel modules to use Xen backed
147148
dma-buf implementation. With this extension grant references to

0 commit comments

Comments
 (0)