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: 76960 Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp630803qgf; Sun, 25 Sep 2016 00:55:15 -0700 (PDT) X-Received: by 10.98.198.193 with SMTP id x62mr22956679pfk.85.1474790115458; Sun, 25 Sep 2016 00:55:15 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z64si18181494pfk.70.2016.09.25.00.55.15; Sun, 25 Sep 2016 00:55:15 -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 S936118AbcIYHzO (ORCPT + 4 others); 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 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);