Message ID | 1479990609-28243-2-git-send-email-liq3ea@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D9B716075F for <patchwork-qemu-devel@patchwork.kernel.org>; Thu, 24 Nov 2016 12:31:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E54B127F4B for <patchwork-qemu-devel@patchwork.kernel.org>; Thu, 24 Nov 2016 12:31:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DA30A27F80; Thu, 24 Nov 2016 12:31:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 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.wl.linuxfoundation.org (Postfix) with ESMTPS id 7767D27F4B for <patchwork-qemu-devel@patchwork.kernel.org>; Thu, 24 Nov 2016 12:31:00 +0000 (UTC) Received: from localhost ([::1]:39422 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1c9tB4-0007Mz-Vb for patchwork-qemu-devel@patchwork.kernel.org; Thu, 24 Nov 2016 07:30:59 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58706) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <liq3ea@gmail.com>) id 1c9tAV-0007M5-LX for qemu-devel@nongnu.org; Thu, 24 Nov 2016 07:30:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <liq3ea@gmail.com>) id 1c9tAT-0000sW-Mw for qemu-devel@nongnu.org; Thu, 24 Nov 2016 07:30:23 -0500 Received: from mail-oi0-x242.google.com ([2607:f8b0:4003:c06::242]:33132) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <liq3ea@gmail.com>) id 1c9tAT-0000s7-Ie for qemu-devel@nongnu.org; Thu, 24 Nov 2016 07:30:21 -0500 Received: by mail-oi0-x242.google.com with SMTP id f201so2901730oib.0 for <qemu-devel@nongnu.org>; Thu, 24 Nov 2016 04:30:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=F18txRXeLq4R4glMIcBO2Xoi2YvvfHOggRu8r4SCMB4=; b=cYE4Lq65wPTtbPv5llaVXSMuhqrdBtm2jUYQ/XftcnGqHM+9wvsUx3EFFrnxYmS+we +9b6F6su8yLezq84qIbKFPwZlzR2qfwLXOD9feMG1eYB595fkDsCeLymBjQ20av11/Tk /Cc860NQNxvDEPOZ9+COEYlzRLAJ0WdL8buorJ37PmE+D0mwyva8WjaCpnhgLlOAlTtu /gvoZLTXKQjMr1IPY+cSHEP6TB8GsvLQpQ3fesg2utZHMG+34u24W1xHCJyd8AZTrc93 ud8PBCamd0IHeQsPn/BqiSfxyb/Eri8Bte7y4C/ZYPsHSL8c7VaPwqKBA8vPgC9yKmlN ao7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=F18txRXeLq4R4glMIcBO2Xoi2YvvfHOggRu8r4SCMB4=; b=NHN0rm6dNf2/guoqjwPXHmOXROtSJn3Md3OP6rRvXkC+2mL4IMwWniefAPl4TOY8uq aPbR8UWZJW6DG2itHDmOZlkp2P1lsoq1Mk8JxN3QhAdPpgii1E0BcZ11CT2xpCswS9uo DqFrJq5NUNouhz7/pmHfFUjVqT+5+Vu5irAMPwgcH6TLzz2Lzxk6LapiiHIRnoiGJE8U yquyuH5jEWNIy2LwzUaC1YgtJ+XPWLDlKO6ac+vHUhC+IYxVKf7QfAvHTxS5brBLvCoh CvYuFjuDr9Ef9lEEdg+YsCrKMO7K2Prnepwjlw0LQzfgliDHXfiX2XwOrlN2uXISSjwg EJvw== X-Gm-Message-State: AKaTC00gp6SDilb2WJhh1x5DnLUbb9MDCwBJmgp2ojyHWBNBydI/yyQj9UykIBzRMbL/9w== X-Received: by 10.157.49.110 with SMTP id v43mr1232481otd.38.1479990620940; Thu, 24 Nov 2016 04:30:20 -0800 (PST) Received: from localhost.localdomain ([104.192.110.250]) by smtp.gmail.com with ESMTPSA id 66sm11572528oid.29.2016.11.24.04.30.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Nov 2016 04:30:20 -0800 (PST) From: Li Qiang <liq3ea@gmail.com> To: kraxel@redhat.com, marcandre.lureau@gmail.com, qemu-devel@nongnu.org Date: Thu, 24 Nov 2016 07:30:08 -0500 Message-Id: <1479990609-28243-2-git-send-email-liq3ea@gmail.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1479990609-28243-1-git-send-email-liq3ea@gmail.com> References: <1479990609-28243-1-git-send-email-liq3ea@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4003:c06::242 Subject: [Qemu-devel] [PATCH 1/2] virtio-gpu: add declaration for virtio_gpu_cleanup_mapping function X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: Li Qiang <liq3ea@gmail.com>, liqiang6-s@360.cn Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/hw/display/virtio-gpu.c b/hw/display/virtio-gpu.c index 60bce94..cc725a6 100644 --- a/hw/display/virtio-gpu.c +++ b/hw/display/virtio-gpu.c @@ -28,6 +28,8 @@ static struct virtio_gpu_simple_resource* virtio_gpu_find_resource(VirtIOGPU *g, uint32_t resource_id); +static void virtio_gpu_cleanup_mapping(struct virtio_gpu_simple_resource *res); + #ifdef CONFIG_VIRGL #include <virglrenderer.h> #define VIRGL(_g, _virgl, _simple, ...) \
The virtio_gpu_resource_destroy function is before the definition of the cleanup mapping function and it should call this cleanup mapping function, so we should add a declaration for it. Signed-off-by: Li Qiang <liq3ea@gmail.com> --- hw/display/virtio-gpu.c | 2 ++ 1 file changed, 2 insertions(+)