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/virtio_test.c | |
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/virtio_test.c')
-rw-r--r-- | tools/virtio/virtio_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/virtio/virtio_test.c b/tools/virtio/virtio_test.c index e044589..76d6f58 100644 --- a/tools/virtio/virtio_test.c +++ b/tools/virtio/virtio_test.c @@ -100,7 +100,7 @@ static void vq_info_add(struct vdev_info *dev, int num) vring_init(&info->vring, num, info->ring, 4096); info->vq = vring_new_virtqueue(info->idx, info->vring.num, 4096, &dev->vdev, - true, info->ring, + true, false, info->ring, vq_notify, vq_callback, "test"); assert(info->vq); info->vq->priv = info; |