From: Philippe Mathieu-Daudé Date: Tue, 17 Oct 2023 13:53:54 +0000 (+0200) Subject: hw/display/virtio-gpu: Use VIRTIO_DEVICE() macro X-Git-Tag: v8.2.0-rc0~59^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3daccfff75dd536117abde15169bede707646977;p=thirdparty%2Fqemu.git hw/display/virtio-gpu: Use VIRTIO_DEVICE() macro Access QOM parent with the proper QOM VIRTIO_DEVICE() macro. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Michael S. Tsirkin Reviewed-by: Manos Pitsidianakis Reviewed-by: Mark Cave-Ayland Message-Id: <20231017140150.44995-4-philmd@linaro.org> --- diff --git a/hw/display/virtio-gpu.c b/hw/display/virtio-gpu.c index 6efd15b6ae4..4265316cbba 100644 --- a/hw/display/virtio-gpu.c +++ b/hw/display/virtio-gpu.c @@ -1128,7 +1128,7 @@ static void virtio_gpu_ctrl_bh(void *opaque) VirtIOGPU *g = opaque; VirtIOGPUClass *vgc = VIRTIO_GPU_GET_CLASS(g); - vgc->handle_ctrl(&g->parent_obj.parent_obj, g->ctrl_vq); + vgc->handle_ctrl(VIRTIO_DEVICE(g), g->ctrl_vq); } static void virtio_gpu_handle_cursor(VirtIODevice *vdev, VirtQueue *vq)