From patchwork Mon Jul 7 19:13:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Weil X-Patchwork-Id: 367690 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id EF8D11400D7 for ; Tue, 8 Jul 2014 05:13:55 +1000 (EST) Received: from localhost ([::1]:52445 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4EML-0002Lu-RY for incoming@patchwork.ozlabs.org; Mon, 07 Jul 2014 15:13:54 -0400 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 Received: from qemu.weilnetz.de ([2a03:4000:2:362::1]:47196) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4ELx-0006PN-Qx; Mon, 07 Jul 2014 15:13:29 -0400 Received: by qemu.weilnetz.de (Postfix, from userid 1000) id B0F6417FA16; Mon, 7 Jul 2014 21:13:27 +0200 (CEST) From: Stefan Weil To: qemu-devel@nongnu.org Date: Mon, 7 Jul 2014 21:13:27 +0200 Message-Id: <1404760407-1554-1-git-send-email-sw@weilnetz.de> X-Mailer: git-send-email 1.7.10.4 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a03:4000:2:362::1 Cc: qemu-trivial@nongnu.org, Stefan Weil Subject: [Qemu-devel] [PATCH] virtio: Move extern declaration to header file X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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);