aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorRashika <rashika.kheria@gmail.com>2014-01-06 10:00:14 -0500
committerDave Airlie <airlied@redhat.com>2014-01-13 21:59:17 -0500
commit5e89440f49936a14bac2af269037cc7f51a4747e (patch)
tree6978c0862bdc1683a19e0c19d75110de988f186d /drivers/gpu
parent70d5422b5b078ce75b9cf58e1485b35178136f41 (diff)
drivers: gpu: Mark functions as static in cirrus_mode.c
Mark functions cirrus_set_start_address(), cirrus_encoder_destroy(), cirrus_vga_get_modes() and cirrus_connector_best_encoder() as static in drm/cirrus/cirrus_mode.c because they are not used outside this file. This eliminates the following warnings in drm/cirrus/cirrus_mode.c: drivers/gpu/drm/cirrus/cirrus_mode.c:105:6: warning: no previous prototype for ‘cirrus_set_start_address’ [-Wmissing-prototypes] drivers/gpu/drm/cirrus/cirrus_mode.c:456:6: warning: no previous prototype for ‘cirrus_encoder_destroy’ [-Wmissing-prototypes] drivers/gpu/drm/cirrus/cirrus_mode.c:495:5: warning: no previous prototype for ‘cirrus_vga_get_modes’ [-Wmissing-prototypes] drivers/gpu/drm/cirrus/cirrus_mode.c:512:21: warning: no previous prototype for ‘cirrus_connector_best_encoder’ [-Wmissing-prototypes] Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/cirrus/cirrus_mode.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/cirrus/cirrus_mode.c b/drivers/gpu/drm/cirrus/cirrus_mode.c
index adabc3daaa5b..58dd900083b9 100644
--- a/drivers/gpu/drm/cirrus/cirrus_mode.c
+++ b/drivers/gpu/drm/cirrus/cirrus_mode.c
@@ -102,7 +102,7 @@ static bool cirrus_crtc_mode_fixup(struct drm_crtc *crtc,
102 return true; 102 return true;
103} 103}
104 104
105void cirrus_set_start_address(struct drm_crtc *crtc, unsigned offset) 105static void cirrus_set_start_address(struct drm_crtc *crtc, unsigned offset)
106{ 106{
107 struct cirrus_device *cdev = crtc->dev->dev_private; 107 struct cirrus_device *cdev = crtc->dev->dev_private;
108 u32 addr; 108 u32 addr;
@@ -453,7 +453,7 @@ static void cirrus_encoder_commit(struct drm_encoder *encoder)
453{ 453{
454} 454}
455 455
456void cirrus_encoder_destroy(struct drm_encoder *encoder) 456static void cirrus_encoder_destroy(struct drm_encoder *encoder)
457{ 457{
458 struct cirrus_encoder *cirrus_encoder = to_cirrus_encoder(encoder); 458 struct cirrus_encoder *cirrus_encoder = to_cirrus_encoder(encoder);
459 drm_encoder_cleanup(encoder); 459 drm_encoder_cleanup(encoder);
@@ -492,7 +492,7 @@ static struct drm_encoder *cirrus_encoder_init(struct drm_device *dev)
492} 492}
493 493
494 494
495int cirrus_vga_get_modes(struct drm_connector *connector) 495static int cirrus_vga_get_modes(struct drm_connector *connector)
496{ 496{
497 int count; 497 int count;
498 498
@@ -509,7 +509,7 @@ static int cirrus_vga_mode_valid(struct drm_connector *connector,
509 return MODE_OK; 509 return MODE_OK;
510} 510}
511 511
512struct drm_encoder *cirrus_connector_best_encoder(struct drm_connector 512static struct drm_encoder *cirrus_connector_best_encoder(struct drm_connector
513 *connector) 513 *connector)
514{ 514{
515 int enc_id = connector->encoder_ids[0]; 515 int enc_id = connector->encoder_ids[0];