tools/virtio: fix build breakage
authorSekhar Nori <nsekhar@ti.com>
Mon, 17 Apr 2017 11:12:15 +0000 (16:42 +0530)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 2 May 2017 20:41:43 +0000 (23:41 +0300)
commit0a12ae4024a5167c30444d722b0cbafbdb5f4b57
treeaa8722c2d2d2d2da811bedd2e71ab804ef6383f5
parentf94682dde5ed23eed13533a37dfce942e60ade4e
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>
tools/virtio/linux/virtio.h
tools/virtio/virtio_test.c
tools/virtio/vringh_test.c