Commit c1abca96 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Alex Williamson

samples: mbochs: add DMA_SHARED_BUFFER dependency

The new bochs vbe sample fails to link when DMA_SHARED_BUFFER is

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: a5e6e650 ("sample: vfio bochs vbe display (host device for bochs-drm)")
Signed-off-by: 's avatarArnd Bergmann <>
Signed-off-by: 's avatarAlex Williamson <>
parent 415eb9fc
......@@ -135,6 +135,7 @@ config SAMPLE_VFIO_MDEV_MDPY_FB
tristate "Build VFIO mdpy example mediated device sample code -- loadable modules only"
depends on VFIO_MDEV_DEVICE && m
Build a virtual display sample driver for use as a VFIO
mediated device. It supports the region display interface
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment