From patchwork Fri Apr 1 13:19:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 8724531 Return-Path: X-Original-To: patchwork-qemu-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3AA07C0553 for ; Fri, 1 Apr 2016 13:22:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8EAE9203DA for ; Fri, 1 Apr 2016 13:22:18 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EA59C203AE for ; Fri, 1 Apr 2016 13:22:17 +0000 (UTC) Received: from localhost ([::1]:44339 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alz1l-0003LJ-6O for patchwork-qemu-devel@patchwork.kernel.org; Fri, 01 Apr 2016 09:22:17 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56208) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alyzZ-0008GR-CE for qemu-devel@nongnu.org; Fri, 01 Apr 2016 09:20:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1alyzY-0001qM-GB for qemu-devel@nongnu.org; Fri, 01 Apr 2016 09:20:01 -0400 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]:34802) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alyzY-0001qD-9D for qemu-devel@nongnu.org; Fri, 01 Apr 2016 09:20:00 -0400 Received: by mail-wm0-x242.google.com with SMTP id p65so4579329wmp.1 for ; Fri, 01 Apr 2016 06:20:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=MvgvATvRC2OmIcPIAQY8YpXsntgCSLhot5Pedhr25Dw=; b=YC7s6tHo+CtESx6nksTwWgmrkUawli28njXyVFzrufDIBKn3z/nd/BGFlPePAZ/oln fMQ6zg7wngH6MPZtgGDlA4iwPgtmutR+Z0LhEIdqM4JYE9bhC/QrRhWFLfErzpZ4zxIo e+XKZtVWiObPC+XNQBuyoxVdZw6oKqH4sncrKyjx/wXUsyHwnP1rYXKjqCXs7K5ga5WA TjtK9xdVHIl3dB9JjsQZi2naWHPph3ckBeQj7WplT6oGtdX1XyReUiDgqkD+Ot7oI5k8 JClRY3SbVcSWAS2A52x+BfxKkn/MkFc7EukJxwPxsS/udRYLiVHTVAvBcct6/kZ5DqnL 3PmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=MvgvATvRC2OmIcPIAQY8YpXsntgCSLhot5Pedhr25Dw=; b=ZbiLJ7gfuzsxGRoRmy68IyKKei/L8vtq7T8fi/2GlECqmk9ndyiGZj5TYobTaO0Yev 3ny2i1YE0/ChnXwRYiHF+yzEuDsIE8DmjaSD9Oi2+n63bfP+UcHVHObleJnecz0fUL3A aPEkYH77Qp7MngexYP7NhWgf4Io2jYm5EkTPaQtV14sh7MOLwFlScgW1Xzzy5fYErRgl Ew+O6/Vv6kL33WFcJlNxSJbXX7Db4FpCbu7fOTMACEEdFQz3wupDriK647M2EuVEzgbz MPaRZyI0x3MZeo6v1DKT6iSoVtxZg5sfKIWm6YrlQbQFOsdvFhIknSOtfWdlStYRLEFy I6qQ== X-Gm-Message-State: AD7BkJLmW2jVen7e2h+ZojX/iKjUaaWORsh8xZ3V9NUbMJ4soQImve9CzcFlaNDtowrvMQ== X-Received: by 10.28.1.207 with SMTP id 198mr3801373wmb.83.1459516799778; Fri, 01 Apr 2016 06:19:59 -0700 (PDT) Received: from 640k.lan (94-39-141-76.adsl-ull.clienti.tiscali.it. [94.39.141.76]) by smtp.gmail.com with ESMTPSA id a1sm14032334wje.43.2016.04.01.06.19.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Apr 2016 06:19:59 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Fri, 1 Apr 2016 15:19:47 +0200 Message-Id: <1459516794-23629-3-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1459516794-23629-1-git-send-email-pbonzini@redhat.com> References: <1459516794-23629-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::242 Cc: famz@redhat.com, tubo@linux.vnet.ibm.com, mst@redhat.com, borntraeger@de.ibm.com, stefanha@redhat.com, cornelia.huck@de.ibm.com Subject: [Qemu-devel] [PATCH 2/9] virtio: make virtio_queue_notify_vq static 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+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Acked-by: Cornelia Huck Signed-off-by: Paolo Bonzini --- hw/virtio/virtio.c | 2 +- include/hw/virtio/virtio.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/hw/virtio/virtio.c b/hw/virtio/virtio.c index 14d5d91..264d4f6 100644 --- a/hw/virtio/virtio.c +++ b/hw/virtio/virtio.c @@ -1088,7 +1088,7 @@ void virtio_queue_set_align(VirtIODevice *vdev, int n, int align) virtio_queue_update_rings(vdev, n); } -void virtio_queue_notify_vq(VirtQueue *vq) +static void virtio_queue_notify_vq(VirtQueue *vq) { if (vq->vring.desc && vq->handle_output) { VirtIODevice *vdev = vq->vdev; diff --git a/include/hw/virtio/virtio.h b/include/hw/virtio/virtio.h index 2b5b248..5afb51c 100644 --- a/include/hw/virtio/virtio.h +++ b/include/hw/virtio/virtio.h @@ -252,7 +252,6 @@ void virtio_queue_set_host_notifier_fd_handler(VirtQueue *vq, bool assign, bool set_handler); void virtio_queue_aio_set_host_notifier_handler(VirtQueue *vq, AioContext *ctx, bool assign, bool set_handler); -void virtio_queue_notify_vq(VirtQueue *vq); void virtio_irq(VirtQueue *vq); VirtQueue *virtio_vector_first_queue(VirtIODevice *vdev, uint16_t vector); VirtQueue *virtio_vector_next_queue(VirtQueue *vq);