diff options
author | Joel Stanley <joel@jms.id.au> | 2014-02-12 23:33:44 -0500 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2014-03-12 20:53:25 -0400 |
commit | d1b8c4c2577e8d0d43ba923b0cf4ec3b46894f67 (patch) | |
tree | 89d5c46a198d881d9879c5e1841ae519412196a0 /tools/virtio | |
parent | 33807f4f0daec3b00565c2932d95f614f5833adf (diff) |
tools/virtio: update internal copies of headers
The virtio headers have changed recently:
5b1bf7cb673 virtio_ring: let virtqueue_{kick()/notify()} return a bool
46f9c2b925a virtio_ring: change host notification API
Update the internal copies to fix the build of virtio_test:
cc -g -O2 -Wall -I. -I ../../usr/include/ -Wno-pointer-sign
-fno-strict-overflow -fno-strict-aliasing -fno-common -MMD -U_FORTIFY_SOURCE
-c -o virtio_test.o virtio_test.c
In file included from virtio_test.c:15:0:
./linux/virtio.h:76:19: error: conflicting types for ‘vring_new_virtqueue’
struct virtqueue *vring_new_virtqueue(unsigned int index,
^
In file included from ./linux/virtio_ring.h:1:0,
from ../../usr/include/linux/vhost.h:17,
from virtio_test.c:14:
./linux/../../../include/linux/virtio_ring.h:68:19: note: previous
declaration of ‘vring_new_virtqueue’ was here
struct virtqueue *vring_new_virtqueue(unsigned int index,
virtio_test.c: In function ‘vq_info_add’:
virtio_test.c:103:12: warning: passing argument 7 of ‘vring_new_virtqueue’
from incompatible pointer type [enabled by default]
vq_notify, vq_callback, "test");
^
In file included from virtio_test.c:15:0:
./linux/virtio.h:76:19: note: expected ‘void (*)(struct virtqueue *)’ but
argument is of type ‘_Bool (*)(struct virtqueue *)’
struct virtqueue *vring_new_virtqueue(unsigned int index,
^
Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'tools/virtio')
-rw-r--r-- | tools/virtio/linux/virtio.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/virtio/linux/virtio.h b/tools/virtio/linux/virtio.h index 844783040703..5a2d1f0f6bc7 100644 --- a/tools/virtio/linux/virtio.h +++ b/tools/virtio/linux/virtio.h | |||
@@ -63,7 +63,7 @@ int virtqueue_add_inbuf(struct virtqueue *vq, | |||
63 | void *data, | 63 | void *data, |
64 | gfp_t gfp); | 64 | gfp_t gfp); |
65 | 65 | ||
66 | void virtqueue_kick(struct virtqueue *vq); | 66 | bool virtqueue_kick(struct virtqueue *vq); |
67 | 67 | ||
68 | void *virtqueue_get_buf(struct virtqueue *vq, unsigned int *len); | 68 | void *virtqueue_get_buf(struct virtqueue *vq, unsigned int *len); |
69 | 69 | ||
@@ -79,7 +79,7 @@ struct virtqueue *vring_new_virtqueue(unsigned int index, | |||
79 | struct virtio_device *vdev, | 79 | struct virtio_device *vdev, |
80 | bool weak_barriers, | 80 | bool weak_barriers, |
81 | void *pages, | 81 | void *pages, |
82 | void (*notify)(struct virtqueue *vq), | 82 | bool (*notify)(struct virtqueue *vq), |
83 | void (*callback)(struct virtqueue *vq), | 83 | void (*callback)(struct virtqueue *vq), |
84 | const char *name); | 84 | const char *name); |
85 | void vring_del_virtqueue(struct virtqueue *vq); | 85 | void vring_del_virtqueue(struct virtqueue *vq); |