From patchwork Sun Sep 25 07:43:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 9349571 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 C595C607F0 for ; Sun, 25 Sep 2016 07:43:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B921328A64 for ; Sun, 25 Sep 2016 07:43:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ADF0228A76; Sun, 25 Sep 2016 07:43:45 +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, HK_RANDOM_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 49D4328A64 for ; Sun, 25 Sep 2016 07:43:45 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bo46C-0003bU-Ch; Sun, 25 Sep 2016 07:43:44 +0000 Received: from mail-pf0-x22f.google.com ([2607:f8b0:400e:c00::22f]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bo468-0003Pn-WA for linux-mediatek@lists.infradead.org; Sun, 25 Sep 2016 07:43:42 +0000 Received: by mail-pf0-x22f.google.com with SMTP id 21so55241127pfy.0 for ; Sun, 25 Sep 2016 00:43:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=pTP8+MHJ+T56VUOX6mYv8UF+1jKqFQkBfTa10C1SRJQ=; b=gE+s3OOJICMGL1a/yDlOHetMZ4ofKG4deV/X3r8i5HXQs+Afz41pzBCrAAfqp8G4IV 55MG066QZ4YbRKqcKAdtCZcx4+oZKHGUHS8hbgEOB4PwCh3tda2+Tx+qR8O2R9lFbrno gqNS55QaAgPhAH1+shlX7nWelEh7SR2Vrr6Cs= 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; bh=pTP8+MHJ+T56VUOX6mYv8UF+1jKqFQkBfTa10C1SRJQ=; b=X6Htx99j+cLzN161ib6B2vwB4PpABPvjrjpvnfRvWpe/w0v/MlKQ8xlJ/UqbZXfgUp bkG2U4V9YDz/MFVfqaEZ5/DUVLyf2KxufwvVm58UmP2kLvrvB30GOcyQ8DETtrKGGhXC 4WkEJHZWmMZR/7n0LdaZ5dLMpV1EULsneUZM/pl02X5i2sOh3twWfN17GoDKQqLocqW7 PvmU7eHz9yuZiOkc3pSWFg+lFjbGcIM4EQNZZAfAaWTFkZLw6NkYGPSqKus6gwT3kKRv MhMHPgvu/443mhSleVy1tOhiMIt9C4MBRbmCa4X+GNl0LL0Pzr3pjIj37FVQ72QsLOk6 QVPA== X-Gm-Message-State: AE9vXwOQvhqLNvchvLwkzQYtiAsnSjPfsVb2x0/kJ47I+dCglGXtpU3usRxvEaq0Vdz2rCI5 X-Received: by 10.98.206.139 with SMTP id y133mr27656997pfg.7.1474789400240; Sun, 25 Sep 2016 00:43:20 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.164]) by smtp.gmail.com with ESMTPSA id 69sm22313216pfu.83.2016.09.25.00.43.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 25 Sep 2016 00:43:19 -0700 (PDT) From: Baoyou Xie To: ck.hu@mediatek.com, p.zabel@pengutronix.de, airlied@linux.ie, matthias.bgg@gmail.com, mark.yao@rock-chips.com, heiko@sntech.de Subject: [PATCH 2/2] drm/rockchip: mark symbols static where possible Date: Sun, 25 Sep 2016 15:43:08 +0800 Message-Id: <1474789388-3284-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160925_004341_164499_2FAD61D6 X-CRM114-Status: GOOD ( 11.08 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arnd@arndb.de, tang.qiang007@zte.com.cn, xie.baoyou@zte.com.cn, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, linux-mediatek@lists.infradead.org, han.fei@zte.com.cn, baoyou.xie@linaro.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP We get 2 warnings when building kernel with W=1: drivers/gpu/drm/rockchip/rockchip_drm_drv.c:309:6: warning: no previous prototype for 'rockchip_drm_fb_suspend' [-Wmissing-prototypes] drivers/gpu/drm/rockchip/rockchip_drm_drv.c:318:6: warning: no previous prototype for 'rockchip_drm_fb_resume' [-Wmissing-prototypes] In fact, these functions are only used in the file in which they are declared and don't need a declaration, but can be made static. So this patch marks these functions with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c index 76eaf1d..38c3be5 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c +++ b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c @@ -309,7 +309,7 @@ static struct drm_driver rockchip_drm_driver = { }; #ifdef CONFIG_PM_SLEEP -void rockchip_drm_fb_suspend(struct drm_device *drm) +static void rockchip_drm_fb_suspend(struct drm_device *drm) { struct rockchip_drm_private *priv = drm->dev_private; @@ -318,7 +318,7 @@ void rockchip_drm_fb_suspend(struct drm_device *drm) console_unlock(); } -void rockchip_drm_fb_resume(struct drm_device *drm) +static void rockchip_drm_fb_resume(struct drm_device *drm) { struct rockchip_drm_private *priv = drm->dev_private;