Message ID | 1479990609-28243-2-git-send-email-liq3ea@gmail.com |
---|---|
State | New |
Headers | show |
diff --git a/hw/display/virtio-gpu.c b/hw/display/virtio-gpu.c index 60bce94..cc725a6 100644 --- a/hw/display/virtio-gpu.c +++ b/hw/display/virtio-gpu.c @@ -28,6 +28,8 @@ static struct virtio_gpu_simple_resource* virtio_gpu_find_resource(VirtIOGPU *g, uint32_t resource_id); +static void virtio_gpu_cleanup_mapping(struct virtio_gpu_simple_resource *res); + #ifdef CONFIG_VIRGL #include <virglrenderer.h> #define VIRGL(_g, _virgl, _simple, ...) \
The virtio_gpu_resource_destroy function is before the definition of the cleanup mapping function and it should call this cleanup mapping function, so we should add a declaration for it. Signed-off-by: Li Qiang <liq3ea@gmail.com> --- hw/display/virtio-gpu.c | 2 ++ 1 file changed, 2 insertions(+)