]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
virtio: make virtio_should_notify static
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 20 Jan 2017 17:07:51 +0000 (18:07 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 1 Feb 2017 01:37:18 +0000 (03:37 +0200)
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/virtio/virtio.c
include/hw/virtio/virtio.h

index f292a53940a2dff4c468ec2eb18e0e85f92ec77b..63657066e7233cb9386aa9a463a60c00e99ea040 100644 (file)
@@ -1383,7 +1383,7 @@ static void virtio_set_isr(VirtIODevice *vdev, int value)
     }
 }
 
-bool virtio_should_notify(VirtIODevice *vdev, VirtQueue *vq)
+static bool virtio_should_notify(VirtIODevice *vdev, VirtQueue *vq)
 {
     uint16_t old, new;
     bool v;
index 6523bacd2f6ff30c644f0e131c87b32302b6e92e..525da242225096e2ba792a390f9b6a586fc619f2 100644 (file)
@@ -182,7 +182,6 @@ void virtqueue_get_avail_bytes(VirtQueue *vq, unsigned int *in_bytes,
                                unsigned int *out_bytes,
                                unsigned max_in_bytes, unsigned max_out_bytes);
 
-bool virtio_should_notify(VirtIODevice *vdev, VirtQueue *vq);
 void virtio_notify_irqfd(VirtIODevice *vdev, VirtQueue *vq);
 void virtio_notify(VirtIODevice *vdev, VirtQueue *vq);