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


Groups > linux.kernel > #1490830

[PATCH] drm/bochs: mark bochs_connector_get_modes() static

From Baoyou Xie <baoyou.xie@linaro.org>
Newsgroups linux.kernel
Subject [PATCH] drm/bochs: mark bochs_connector_get_modes() static
Date 2016-09-25 09:30 +0200
Message-ID <slc2S-3CK-17@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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>
---
 drivers/gpu/drm/bochs/bochs_kms.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/bochs/bochs_kms.c b/drivers/gpu/drm/bochs/bochs_kms.c
index 207a2cb..0b4e5d1 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;
 
-- 
2.7.4

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] drm/bochs: mark bochs_connector_get_modes() static Baoyou Xie <baoyou.xie@linaro.org> - 2016-09-25 09:30 +0200
  Re: [PATCH] drm/bochs: mark bochs_connector_get_modes() static Gerd Hoffmann <kraxel@redhat.com> - 2016-09-26 11:00 +0200
    Re: [PATCH] drm/bochs: mark bochs_connector_get_modes() static Daniel Vetter <daniel.vetter@ffwll.ch> - 2016-09-26 11:30 +0200
      Re: [PATCH] drm/bochs: mark bochs_connector_get_modes() static Gerd Hoffmann <kraxel@redhat.com> - 2016-09-26 12:30 +0200

csiph-web