aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBaoyou Xie <baoyou.xie@linaro.org>2016-09-25 03:43:08 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2016-10-04 02:23:01 -0400
commit6239817702e6fc3737d95256586a767a9b4f7fc0 (patch)
tree74f72ace0cf67c987a262e3458b88806c081ab50 /drivers
parent813cfc89f826edc6d78ac0dc0cfbf45ca6483fd4 (diff)
drm/rockchip: mark symbols static where possible
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 <baoyou.xie@linaro.org> Signed-off-by: Sean Paul <seanpaul@chromium.org> Link: http://patchwork.freedesktop.org/patch/msgid/1474789388-3284-1-git-send-email-baoyou.xie@linaro.org
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/rockchip/rockchip_drm_drv.c4
1 files 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 446b5d7e85f7..8c8cbe837e61 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 = {
309}; 309};
310 310
311#ifdef CONFIG_PM_SLEEP 311#ifdef CONFIG_PM_SLEEP
312void rockchip_drm_fb_suspend(struct drm_device *drm) 312static void rockchip_drm_fb_suspend(struct drm_device *drm)
313{ 313{
314 struct rockchip_drm_private *priv = drm->dev_private; 314 struct rockchip_drm_private *priv = drm->dev_private;
315 315
@@ -318,7 +318,7 @@ void rockchip_drm_fb_suspend(struct drm_device *drm)
318 console_unlock(); 318 console_unlock();
319} 319}
320 320
321void rockchip_drm_fb_resume(struct drm_device *drm) 321static void rockchip_drm_fb_resume(struct drm_device *drm)
322{ 322{
323 struct rockchip_drm_private *priv = drm->dev_private; 323 struct rockchip_drm_private *priv = drm->dev_private;
324 324