From patchwork Sun Sep 25 07:54:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 9349593 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 250A86077B for ; Sun, 25 Sep 2016 07:55:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1BFA6212D6 for ; Sun, 25 Sep 2016 07:55:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0E5EC2465D; Sun, 25 Sep 2016 07:55:17 +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_SIGNED, HK_RANDOM_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 266D3212D6 for ; Sun, 25 Sep 2016 07:55:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936118AbcIYHzO (ORCPT ); Sun, 25 Sep 2016 03:55:14 -0400 Received: from mail-pa0-f45.google.com ([209.85.220.45]:35465 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752674AbcIYHzN (ORCPT ); Sun, 25 Sep 2016 03:55:13 -0400 Received: by mail-pa0-f45.google.com with SMTP id oz2so52852676pac.2 for ; Sun, 25 Sep 2016 00:55:12 -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=71hai0IpJKlYiU/MHg3xJyzGO+IyEn3Khiu9pHkcaLQ=; b=TwBeuaN2f+yfipOX39U+9CHroGjTPIQ/jISqXLUQqR3b3fMNpNBpZE03aJgR84rAfZ 8mGHE7zuDSK0oSK8fYvf9yQjQ2lebZ1ljW9fi8s2i5lc63rDJL3uX2lKGM3LVctKyrlk pOc6I4qUxezerl3iTfO8FeHNcP3T8T02HDt0E= 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=71hai0IpJKlYiU/MHg3xJyzGO+IyEn3Khiu9pHkcaLQ=; b=F0y+6lFwcA70YmXTXUmLN9JV4Zl5BQdFmaNrI5iepjfH+VIic8oegRMSygLunoxAm6 KF5NwHAWCkXf2ViNub5riTVboOTL1xd8yLWOrcu+ixuRsV43xyY/Seih6cz4fVlHwVvF 9cmjUSYOtbLYhbfk3+OKCmH5svLL4+OFgxinN8KQun/g2AIiRfLV0M+wNLqRXCi8pO6x Ky20nj3y2zmG+1xp5fnuLsd8jzK0gPzCYhzwcAW2U3AuHrfUeSAcCfMJSjvmrgm1K62s uLczZmc2+t4+kB4K8+Dt4zCvcW3AHoqymVOSd/MM9pRuclw7cFWtpClSPTAY+oz/HUEm Wkag== X-Gm-Message-State: AE9vXwM2ebIOr9Bg8RctOolgjCwFk5U/jhl9oIcYS8Mk0TSfQKWkac2CsEZfWGlHM1wY869O X-Received: by 10.66.147.5 with SMTP id tg5mr27278713pab.116.1474790112412; Sun, 25 Sep 2016 00:55:12 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.164]) by smtp.gmail.com with ESMTPSA id o123sm22365969pfg.78.2016.09.25.00.55.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 25 Sep 2016 00:55:11 -0700 (PDT) From: Baoyou Xie To: jingoohan1@gmail.com, inki.dae@samsung.com, jy0922.shim@samsung.com, sw0312.kim@samsung.com, kyungmin.park@samsung.com, airlied@linux.ie, kgene@kernel.org, krzk@kernel.org, javier@osg.samsung.com Cc: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn, han.fei@zte.com.cn, tang.qiang007@zte.com.cn Subject: [PATCH] drm/exynos: mark exynos_dp_crtc_clock_enable() static Date: Sun, 25 Sep 2016 15:54:59 +0800 Message-Id: <1474790099-5489-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP We get 1 warning when building kernel with W=1: drivers/gpu/drm/exynos/exynos_dp.c:46:5: warning: no previous prototype for 'exynos_dp_crtc_clock_enable' [-Wmissing-prototypes] In fact, this function is only used in the file in which it is declared and don't need a declaration, but can be made static. So this patch marks it 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/exynos/exynos_dp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/exynos/exynos_dp.c b/drivers/gpu/drm/exynos/exynos_dp.c index 4f08505..528229f 100644 --- a/drivers/gpu/drm/exynos/exynos_dp.c +++ b/drivers/gpu/drm/exynos/exynos_dp.c @@ -43,7 +43,7 @@ struct exynos_dp_device { struct analogix_dp_plat_data plat_data; }; -int exynos_dp_crtc_clock_enable(struct analogix_dp_plat_data *plat_data, +static int exynos_dp_crtc_clock_enable(struct analogix_dp_plat_data *plat_data, bool enable) { struct exynos_dp_device *dp = to_dp(plat_data);