From patchwork Tue Jul 19 12:45:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: weiyj_lk@163.com X-Patchwork-Id: 9237641 Return-Path: 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 C44C56075D for ; Tue, 19 Jul 2016 14:31:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B591B27569 for ; Tue, 19 Jul 2016 14:31:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AA5972766D; Tue, 19 Jul 2016 14:31:10 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 475DB27569 for ; Tue, 19 Jul 2016 14:31:10 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 15EB46E24A; Tue, 19 Jul 2016 14:30:35 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from m12-15.163.com (m12-15.163.com [220.181.12.15]) by gabe.freedesktop.org (Postfix) with ESMTP id 265176E69C for ; Tue, 19 Jul 2016 12:46:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=wF/WY C7opV+4HFSUolRsaBeylSZJMkzzEKRsOO5A4M0=; b=lzxB/oStj4QFBdl3WqhBJ uyX2QMobDQ/fZksC7aJ/Ap9aqj5M/JFZ3PP14jIyaFlHy1wFFnfYqi3YarA+XGdL I5fTvPD/+FIGbM3eVFK1EjVznr6Zv4kDkyQqvVeO+txDTyhPG/VYEhWkggCVgaL2 qrtsoUFB21JnON97RzLe7Q= Received: from localhost.localdomain.localdomain (unknown [180.110.255.208]) by smtp11 (Coremail) with SMTP id D8CowAAXy4gFIY5XikSMAQ--.36717S2; Tue, 19 Jul 2016 20:45:57 +0800 (CST) From: Wei Yongjun To: David Airlie , Gerd Hoffmann Subject: [PATCH -next] drm/virtio: Fix non static symbol warning Date: Tue, 19 Jul 2016 12:45:56 +0000 Message-Id: <1468932356-26678-1-git-send-email-weiyj_lk@163.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-CM-TRANSID: D8CowAAXy4gFIY5XikSMAQ--.36717S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7WryUGw4DXF4xJF4fWrW3Wrg_yoWDCFb_Cr yUGr97Grya9F1v9ayj9w4Svr1Iv3W2vFsrX39xtFWfJrnrA3Way3sIqFWUXr1UWa4DKFWD AFZagFn3ZwnxGjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUnfpntUUUUU== X-Originating-IP: [180.110.255.208] X-CM-SenderInfo: pzhl5yxbonqiywtou0bp/1tbiRwWr1lc64ZO11wAAsC X-Mailman-Approved-At: Tue, 19 Jul 2016 14:30:31 +0000 Cc: Wei Yongjun , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, virtualization@lists.linux-foundation.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Wei Yongjun Fixes the following sparse warning: drivers/gpu/drm/virtio/virtgpu_display.c:349:37: warning: symbol 'virtio_mode_config_helpers' was not declared. Should it be static? Signed-off-by: Wei Yongjun --- drivers/gpu/drm/virtio/virtgpu_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/virtio/virtgpu_display.c b/drivers/gpu/drm/virtio/virtgpu_display.c index fdfc711..4e192aa 100644 --- a/drivers/gpu/drm/virtio/virtgpu_display.c +++ b/drivers/gpu/drm/virtio/virtgpu_display.c @@ -346,7 +346,7 @@ static void vgdev_atomic_commit_tail(struct drm_atomic_state *state) drm_atomic_helper_cleanup_planes(dev, state); } -struct drm_mode_config_helper_funcs virtio_mode_config_helpers = { +static struct drm_mode_config_helper_funcs virtio_mode_config_helpers = { .atomic_commit_tail = vgdev_atomic_commit_tail, };