Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1490841 > unrolled thread

[PATCH] drm/exynos: mark exynos_dp_crtc_clock_enable() static

Started byBaoyou Xie <baoyou.xie@linaro.org>
First post2016-09-25 10:00 +0200
Last post2016-09-25 10:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] drm/exynos: mark exynos_dp_crtc_clock_enable() static Baoyou Xie <baoyou.xie@linaro.org> - 2016-09-25 10:00 +0200

#1490841 — [PATCH] drm/exynos: mark exynos_dp_crtc_clock_enable() static

FromBaoyou Xie <baoyou.xie@linaro.org>
Date2016-09-25 10:00 +0200
Subject[PATCH] drm/exynos: mark exynos_dp_crtc_clock_enable() static
Message-ID<slcvT-3Mo-11@gated-at.bofh.it>
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 <baoyou.xie@linaro.org>
---
 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);
-- 
2.7.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web