drm/bochs: mark bochs_connector_get_modes() static
authorBaoyou Xie <baoyou.xie@linaro.org>
Sun, 25 Sep 2016 07:25:34 +0000 (15:25 +0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 25 Sep 2016 20:58:53 +0000 (22:58 +0200)
We get 1 warning when building kernel with W=1:
drivers/gpu/drm/bochs/bochs_kms.c:181:5: warning: no previous prototype for 'bochs_connector_get_modes' [-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>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1474788334-11007-1-git-send-email-baoyou.xie@linaro.org
drivers/gpu/drm/bochs/bochs_kms.c

index 207a2cbcc1133c829dd1b2c28138bab82fbf216d..0b4e5d11704335888c0d6818a44d486675ee97ba 100644 (file)
@@ -178,7 +178,7 @@ static void bochs_encoder_init(struct drm_device *dev)
 }
 
 
-int bochs_connector_get_modes(struct drm_connector *connector)
+static int bochs_connector_get_modes(struct drm_connector *connector)
 {
        int count;