summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann2019-03-07 09:02:44 +0100
committerGerd Hoffmann2019-03-11 08:04:12 +0100
commit0be00346d1e3d96b839832809d7042db8c7d4300 (patch)
tree89c923564fb0fa4f6e0efd791e561efaaaf90751
parentvirtio-vga: fix reset. (diff)
downloadqemu-0be00346d1e3d96b839832809d7042db8c7d4300.tar.gz
qemu-0be00346d1e3d96b839832809d7042db8c7d4300.tar.xz
qemu-0be00346d1e3d96b839832809d7042db8c7d4300.zip
virtio-gpu: make virtio_gpu_reset static
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Message-id: 20190307080244.9011-4-kraxel@redhat.com
-rw-r--r--hw/display/virtio-gpu.c2
-rw-r--r--include/hw/virtio/virtio-gpu.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/hw/display/virtio-gpu.c b/hw/display/virtio-gpu.c
index a3627f58a9..4dbf48e424 100644
--- a/hw/display/virtio-gpu.c
+++ b/hw/display/virtio-gpu.c
@@ -1346,7 +1346,7 @@ static void virtio_gpu_instance_init(Object *obj)
{
}
-void virtio_gpu_reset(VirtIODevice *vdev)
+static void virtio_gpu_reset(VirtIODevice *vdev)
{
VirtIOGPU *g = VIRTIO_GPU(vdev);
struct virtio_gpu_simple_resource *res, *tmp;
diff --git a/include/hw/virtio/virtio-gpu.h b/include/hw/virtio/virtio-gpu.h
index 98504f9075..ce0ca72171 100644
--- a/include/hw/virtio/virtio-gpu.h
+++ b/include/hw/virtio/virtio-gpu.h
@@ -148,7 +148,6 @@ extern const GraphicHwOps virtio_gpu_ops;
} while (0)
/* virtio-gpu.c */
-void virtio_gpu_reset(VirtIODevice *vdev);
void virtio_gpu_ctrl_response(VirtIOGPU *g,
struct virtio_gpu_ctrl_command *cmd,
struct virtio_gpu_ctrl_hdr *resp,