diff options
author | Sekhar Nori <nsekhar@ti.com> | 2017-04-17 16:42:15 +0530 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2017-05-02 23:41:43 +0300 |
commit | 0a12ae4024a5167c30444d722b0cbafbdb5f4b57 (patch) | |
tree | aa8722c2d2d2d2da811bedd2e71ab804ef6383f5 /tools/virtio/linux | |
parent | f94682dde5ed23eed13533a37dfce942e60ade4e (diff) | |
download | op-kernel-dev-0a12ae4024a5167c30444d722b0cbafbdb5f4b57.zip op-kernel-dev-0a12ae4024a5167c30444d722b0cbafbdb5f4b57.tar.gz |
tools/virtio: fix build breakage
Previous commit ("virtio: add context flag to find vqs")
added a new 'context' flag to vring_new_virtqueue(), but the
corresponding API in tools/virtio/ is not updated causing
build errors due to conflicting declarations.
Bring code in tools/virtio in sync with that in kernel.
I have used 'false' for the value of the new boolean 'context'
flag as that seems to be the best way to preserve existing
behavior.
Tested with:
$ make -C tools/virtio clean all ARCH=x86
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'tools/virtio/linux')
-rw-r--r-- | tools/virtio/linux/virtio.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/virtio/linux/virtio.h b/tools/virtio/linux/virtio.h index 9377c8b..d8f5340 100644 --- a/tools/virtio/linux/virtio.h +++ b/tools/virtio/linux/virtio.h @@ -57,6 +57,7 @@ struct virtqueue *vring_new_virtqueue(unsigned int index, unsigned int vring_align, struct virtio_device *vdev, bool weak_barriers, + bool ctx, void *pages, bool (*notify)(struct virtqueue *vq), void (*callback)(struct virtqueue *vq), |