diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2012-04-09 02:24:02 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-13 19:09:19 +0200 |
commit | ca8f4fb21d08747013cce9cf1840aa5bfc31f2d8 (patch) | |
tree | f18de0412ec64d7aa4a26ff85d0ad1c57263dbff /drivers/vhost/vhost.h | |
parent | ppp: Fix race condition with queue start/stop (diff) | |
download | linux-ca8f4fb21d08747013cce9cf1840aa5bfc31f2d8.tar.xz linux-ca8f4fb21d08747013cce9cf1840aa5bfc31f2d8.zip |
skbuff: struct ubuf_info callback type safety
The skb struct ubuf_info callback gets passed struct ubuf_info
itself, not the arg value as the field name and the function signature
seem to imply. Rename the arg field to ctx to match usage,
add documentation and change the callback argument type
to make usage clear and to have compiler check correctness.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/vhost/vhost.h')
-rw-r--r-- | drivers/vhost/vhost.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vhost/vhost.h b/drivers/vhost/vhost.h index 8dcf4cca6bf2..8de1fd5b8efb 100644 --- a/drivers/vhost/vhost.h +++ b/drivers/vhost/vhost.h @@ -188,7 +188,7 @@ bool vhost_enable_notify(struct vhost_dev *, struct vhost_virtqueue *); int vhost_log_write(struct vhost_virtqueue *vq, struct vhost_log *log, unsigned int log_num, u64 len); -void vhost_zerocopy_callback(void *arg); +void vhost_zerocopy_callback(struct ubuf_info *); int vhost_zerocopy_signal_used(struct vhost_virtqueue *vq); #define vq_err(vq, fmt, ...) do { \ |