From patchwork Sun Sep 18 13:58:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 76473 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp536533qgf; Sun, 18 Sep 2016 06:58:49 -0700 (PDT) X-Received: by 10.98.18.8 with SMTP id a8mr38788458pfj.57.1474207129426; Sun, 18 Sep 2016 06:58:49 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fc4si23091100pab.13.2016.09.18.06.58.48; Sun, 18 Sep 2016 06:58:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757020AbcIRN6r (ORCPT + 4 others); Sun, 18 Sep 2016 09:58:47 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:35939 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755853AbcIRN6r (ORCPT ); Sun, 18 Sep 2016 09:58:47 -0400 Received: by mail-pa0-f46.google.com with SMTP id id6so40053891pad.3 for ; Sun, 18 Sep 2016 06:58:46 -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=KZXXW+qUrWgfl/Z2ivYUrTm6VPYKaRSnk3/Fc0XNqZ0hOXLdNOJAXM+8/HCS8DXzGd QKL1NcETKsC5ifGm36hJeI3ex58W/VHGfgpLbGpmlsTLqRtgCfPBaePE1C8ZJGl6pPt2 ZFDcLpnhKcMKw+Ywb9FK2kx7ztDNlZLY9Iie4= 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=i3ikaiBxMUAdKcimEd2smK/tgzSUTbByQxsfrmToqhbAkk02Ut5b8vCaiRyEK1Q2pI RTgTxEbG3BphSpedjBtF9so2W8Q73N/omZuL3NHh7sUtBI3WCaUNV5NRPOIGCpE3cnGl cl9wSlL/gkH+riSfOBfLzDuwphWpQHXOQFIpJMs9pbHOADxGpQM24Zpt/PRL17dKnSBS 37rR8s54++3mSal6E2d+mZKHYRXJU/EWmtKiD1ZADDt0tQwXp09bPm1NxOpCsKrGoQuq gvCBMdYvJZOJCEoicJsiizHfBKSGYQ331ebtQ14cxowa468c/VPnOq2FWxMcwRM4ImlE r7fg== X-Gm-Message-State: AE9vXwMUCTtOg73viT8NPrnhOnHsIaSCm6kHgCeyBxv2Yyr7BIUbTjBS78s5wzR8zIeFaFK4 X-Received: by 10.66.253.133 with SMTP id aa5mr25094377pad.161.1474207126282; Sun, 18 Sep 2016 06:58:46 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.172]) by smtp.gmail.com with ESMTPSA id k80sm26565520pfk.27.2016.09.18.06.58.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 18 Sep 2016 06:58:45 -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 Subject: [PATCH] drm/exynos: mark exynos_dp_crtc_clock_enable() static Date: Sun, 18 Sep 2016 21:58:30 +0800 Message-Id: <1474207110-16111-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 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(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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);