]> git.baikalelectronics.ru Git - kernel.git/commit
samples: mbochs: add DMA_SHARED_BUFFER dependency
authorArnd Bergmann <arnd@arndb.de>
Wed, 30 May 2018 21:37:31 +0000 (23:37 +0200)
committerAlex Williamson <alex.williamson@redhat.com>
Sat, 9 Jun 2018 15:23:52 +0000 (09:23 -0600)
commit8a93212a542ed2123b5948d19010cda47df69cde
tree074811f64523cd1829cee02bdf476e6420285054
parent4e085b7351ae91f675ee1f456a0ae626f8fc302d
samples: mbochs: add DMA_SHARED_BUFFER dependency

The new bochs vbe sample fails to link when DMA_SHARED_BUFFER is
disabled:

ERROR: "dma_buf_export" [samples/vfio-mdev/mbochs.ko] undefined!
ERROR: "dma_buf_fd" [samples/vfio-mdev/mbochs.ko] undefined!

This uses a 'select' statement to enable that framework, like all
other users do.

Fixes: dcc74fbd6c04 ("sample: vfio bochs vbe display (host device for bochs-drm)")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
samples/Kconfig