From: Stefan Weil Date: Mon, 7 Jul 2014 19:13:27 +0000 (+0200) Subject: virtio: Move extern declaration to header file X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=0f03fb6094743b50d403b9f6181aced9ded98883;p=qmiga%2Fqemu.git virtio: Move extern declaration to header file This fixes a warning from smatch (static code analyser). Signed-off-by: Stefan Weil Signed-off-by: Michael Tokarev --- diff --git a/hw/virtio/vhost-backend.c b/hw/virtio/vhost-backend.c index 35316c40d9..ff4f2001bb 100644 --- a/hw/virtio/vhost-backend.c +++ b/hw/virtio/vhost-backend.c @@ -14,8 +14,6 @@ #include -extern const VhostOps user_ops; - static int vhost_kernel_call(struct vhost_dev *dev, unsigned long int request, void *arg) { 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);