From patchwork Wed Jul 13 12:43:24 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: 9229181 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 00710608A1 for ; Thu, 14 Jul 2016 08:10:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E6AC72810E for ; Thu, 14 Jul 2016 08:10:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DACA928179; Thu, 14 Jul 2016 08:10:13 +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 84C7C2810E for ; Thu, 14 Jul 2016 08:10:13 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5945C6E893; Thu, 14 Jul 2016 08:10:12 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 952 seconds by postgrey-1.35 at gabe; Wed, 13 Jul 2016 12:59:42 UTC Received: from m12-14.163.com (m12-14.163.com [220.181.12.14]) by gabe.freedesktop.org (Postfix) with ESMTP id 4E1E76E728 for ; Wed, 13 Jul 2016 12:59:42 +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=wGHZf u3C0+Ri6mTxzotLkZjZmW4Vfnp9NxyL3ymQsVQ=; b=IOX/01W0GmXIw2gKS6Hsc 7aWYJnMQVzuP2spD2n6QIKxs2YE/2ZiTypF/NAAVY/1HOog8g53JjnqBqfJpmqXU jjo5huj1uu8LEawGeyNhAWv2iJrG9bEMJsihXG4t2peeSCopr/syTzOU2g0Vg5dg 0/XKeU7aKjNNegkaY3Kfbo= Received: from localhost.localdomain.localdomain (unknown [180.102.101.186]) by smtp10 (Coremail) with SMTP id DsCowAB3a9hsN4ZXrdUFAg--.45890S2; Wed, 13 Jul 2016 20:43:25 +0800 (CST) From: weiyj_lk@163.com To: Xinliang Liu , Xinwei Kong , Chen Feng , David Airlie Subject: [PATCH -next] drm/hisilicon: Fix non static symbol warning Date: Wed, 13 Jul 2016 12:43:24 +0000 Message-Id: <1468413804-2271-1-git-send-email-weiyj_lk@163.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-CM-TRANSID: DsCowAB3a9hsN4ZXrdUFAg--.45890S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7WryUGw4xKr4fXFW5tF1fWFg_yoWfKrc_Cr 9xWFn3Zr429FyqvFyjvrn5uryIvw1Durs5Gw47t3yfJ3sxZr1Ut3s0vrsrAw13WFsFgFnr AayFgrn3CFn7WjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUeY2NtUUUUU== X-Originating-IP: [180.102.101.186] X-CM-SenderInfo: pzhl5yxbonqiywtou0bp/1tbiJRil1lUMAvlboQABsX X-Mailman-Approved-At: Thu, 14 Jul 2016 08:08:24 +0000 Cc: Wei Yongjun , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.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/hisilicon/kirin/kirin_drm_ade.c:107:5: warning: symbol 'ade_get_channel_formats' was not declared. Should it be static? Signed-off-by: Wei Yongjun --- drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c b/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c index 805f432..2a913cc 100644 --- a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c +++ b/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c @@ -104,7 +104,7 @@ static const u32 channel_formats1[] = { DRM_FORMAT_ABGR8888 }; -u32 ade_get_channel_formats(u8 ch, const u32 **formats) +static u32 ade_get_channel_formats(u8 ch, const u32 **formats) { switch (ch) { case ADE_CH1: