Received: from eggs.gnu.org ([2001:4830:134:3::10]:57415) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4ELz-0001xU-2b for qemu-devel@nongnu.org; Mon, 07 Jul 2014 15:13:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X4ELy-0006PS-1P for qemu-devel@nongnu.org; Mon, 07 Jul 2014 15:13:31 -0400 From: Stefan Weil Date: Mon, 7 Jul 2014 21:13:27 +0200 Message-Id: <1404760407-1554-1-git-send-email-sw@weilnetz.de> Subject: [Qemu-devel] [PATCH] virtio: Move extern declaration to header file List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, Stefan Weil This fixes a warning from smatch (static code analyser). Signed-off-by: Stefan Weil --- hw/virtio/vhost-backend.c | 2 -- include/hw/virtio/vhost-backend.h | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/virtio/vhost-backend.c b/hw/virtio/vhost-backend.c index 35316c4..ff4f200 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 d31768a..e472f29 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); -- 1.7.10.4