summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/bochs
diff options
context:
space:
mode:
authorBaoyou Xie <baoyou.xie@linaro.org>2016-09-25 15:25:34 +0800
committerDaniel Vetter <daniel.vetter@ffwll.ch>2016-09-25 22:58:53 +0200
commit41bb156ea950e8f9c8730e60aaaca7eb9754c173 (patch)
tree08948f69708e4f481360825f5a1114ee9f9a0bf0 /drivers/gpu/drm/bochs
parentf2600d08d4e8d211262b143e71d3a08f320e1e17 (diff)
downloadblackbird-obmc-linux-41bb156ea950e8f9c8730e60aaaca7eb9754c173.tar.gz
blackbird-obmc-linux-41bb156ea950e8f9c8730e60aaaca7eb9754c173.zip
drm/bochs: mark bochs_connector_get_modes() static
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
Diffstat (limited to 'drivers/gpu/drm/bochs')
-rw-r--r--drivers/gpu/drm/bochs/bochs_kms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/bochs/bochs_kms.c b/drivers/gpu/drm/bochs/bochs_kms.c
index 207a2cbcc113..0b4e5d117043 100644
--- a/drivers/gpu/drm/bochs/bochs_kms.c
+++ b/drivers/gpu/drm/bochs/bochs_kms.c
@@ -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;
OpenPOWER on IntegriCloud