summaryrefslogtreecommitdiff
path: root/tools/virtio/linux
diff options
context:
space:
mode:
authorSekhar Nori <nsekhar@ti.com>2017-04-17 14:12:15 +0300
committerMichael S. Tsirkin <mst@redhat.com>2017-05-02 23:41:43 +0300
commit0a12ae4024a5167c30444d722b0cbafbdb5f4b57 (patch)
treeaa8722c2d2d2d2da811bedd2e71ab804ef6383f5 /tools/virtio/linux
parentf94682dde5ed23eed13533a37dfce942e60ade4e (diff)
downloadlinux-0a12ae4024a5167c30444d722b0cbafbdb5f4b57.tar.xz
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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/virtio/linux/virtio.h b/tools/virtio/linux/virtio.h
index 9377c8b4ac16..d8f534025b7f 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),