diff options
| author | Ladi Prosek <lprosek@redhat.com> | 2016-11-03 09:55:50 +0100 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2016-11-15 17:20:36 +0200 |
| commit | bf91bd27924955aa243abfa5d422ee71e9e84b93 (patch) | |
| tree | 5023af1e57d2ae4c6da11376c7c0ae34cd01ba8f /include/hw/virtio | |
| parent | 27e57efe32f53a8788cd6b6b9b9bbc08446cc8ae (diff) | |
| download | focaccia-qemu-bf91bd27924955aa243abfa5d422ee71e9e84b93.tar.gz focaccia-qemu-bf91bd27924955aa243abfa5d422ee71e9e84b93.zip | |
virtio: make virtqueue_alloc_element static
The function does not fully initialize the returned VirtQueueElement and should be used only internally from the virtio module. Signed-off-by: Ladi Prosek <lprosek@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/hw/virtio')
| -rw-r--r-- | include/hw/virtio/virtio.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/hw/virtio/virtio.h b/include/hw/virtio/virtio.h index 6a2f57c1f7..f12a1a8635 100644 --- a/include/hw/virtio/virtio.h +++ b/include/hw/virtio/virtio.h @@ -154,7 +154,6 @@ VirtQueue *virtio_add_queue(VirtIODevice *vdev, int queue_size, void virtio_del_queue(VirtIODevice *vdev, int n); -void *virtqueue_alloc_element(size_t sz, unsigned out_num, unsigned in_num); void virtqueue_push(VirtQueue *vq, const VirtQueueElement *elem, unsigned int len); void virtqueue_flush(VirtQueue *vq, unsigned int count); |