aboutsummaryrefslogtreecommitdiff
path: root/include/hw/virtio/vhost-backend.h
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2014-07-07 21:13:27 +0200
committerMichael Tokarev <mjt@tls.msk.ru>2014-08-09 00:06:32 +0400
commit0f03fb6094743b50d403b9f6181aced9ded98883 (patch)
tree8e696788a8e2e919105db81f0577fe113e22b5e0 /include/hw/virtio/vhost-backend.h
parenta3f1f040d2454b5328178393843656c8bbd0429c (diff)
virtio: Move extern declaration to header file
This fixes a warning from smatch (static code analyser). Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'include/hw/virtio/vhost-backend.h')
-rw-r--r--include/hw/virtio/vhost-backend.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/virtio/vhost-backend.h b/include/hw/virtio/vhost-backend.h
index d31768a1d4..e472f29714 100644
--- a/include/hw/virtio/vhost-backend.h
+++ b/include/hw/virtio/vhost-backend.h
@@ -32,6 +32,8 @@ typedef struct VhostOps {
vhost_backend_cleanup vhost_backend_cleanup;
} VhostOps;
+extern const VhostOps user_ops;
+
int vhost_set_backend_type(struct vhost_dev *dev,
VhostBackendType backend_type);