aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-08-20 08:23:26 -0400
committerChris Wilson <chris@chris-wilson.co.uk>2010-09-08 05:23:57 -0400
commit995b6762f0fd54377bbfafdf5328b12de698bfa8 (patch)
tree4942552ec93f77e7c083885e38083db2cdcd9821 /drivers/gpu/drm
parentde227ef0907258359d53e3e1530c1f3678eb2bb9 (diff)
drm/i915: Quieten sparse warnings for missing prototypes.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/i915/i915_dma.c2
-rw-r--r--drivers/gpu/drm/i915/i915_gem.c6
-rw-r--r--drivers/gpu/drm/i915/i915_irq.c6
-rw-r--r--drivers/gpu/drm/i915/intel_dp.c2
-rw-r--r--drivers/gpu/drm/i915/intel_fb.c4
5 files changed, 10 insertions, 10 deletions
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c
index 315326d5dc22..c52e16fe3d8c 100644
--- a/drivers/gpu/drm/i915/i915_dma.c
+++ b/drivers/gpu/drm/i915/i915_dma.c
@@ -1902,7 +1902,7 @@ static struct drm_i915_private *i915_mch_dev;
1902 * - dev_priv->fmax 1902 * - dev_priv->fmax
1903 * - dev_priv->gpu_busy 1903 * - dev_priv->gpu_busy
1904 */ 1904 */
1905DEFINE_SPINLOCK(mchdev_lock); 1905static DEFINE_SPINLOCK(mchdev_lock);
1906 1906
1907/** 1907/**
1908 * i915_read_mch_val - return value for IPS use 1908 * i915_read_mch_val - return value for IPS use
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index b6e4b60724ec..e0b7ddc917c2 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -4635,8 +4635,8 @@ i915_gem_load(struct drm_device *dev)
4635 * Create a physically contiguous memory object for this object 4635 * Create a physically contiguous memory object for this object
4636 * e.g. for cursor + overlay regs 4636 * e.g. for cursor + overlay regs
4637 */ 4637 */
4638int i915_gem_init_phys_object(struct drm_device *dev, 4638static int i915_gem_init_phys_object(struct drm_device *dev,
4639 int id, int size, int align) 4639 int id, int size, int align)
4640{ 4640{
4641 drm_i915_private_t *dev_priv = dev->dev_private; 4641 drm_i915_private_t *dev_priv = dev->dev_private;
4642 struct drm_i915_gem_phys_object *phys_obj; 4642 struct drm_i915_gem_phys_object *phys_obj;
@@ -4668,7 +4668,7 @@ kfree_obj:
4668 return ret; 4668 return ret;
4669} 4669}
4670 4670
4671void i915_gem_free_phys_object(struct drm_device *dev, int id) 4671static void i915_gem_free_phys_object(struct drm_device *dev, int id)
4672{ 4672{
4673 drm_i915_private_t *dev_priv = dev->dev_private; 4673 drm_i915_private_t *dev_priv = dev->dev_private;
4674 struct drm_i915_gem_phys_object *phys_obj; 4674 struct drm_i915_gem_phys_object *phys_obj;
diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c
index 080ea3b162cd..29215b6d5650 100644
--- a/drivers/gpu/drm/i915/i915_irq.c
+++ b/drivers/gpu/drm/i915/i915_irq.c
@@ -85,7 +85,7 @@ ironlake_disable_graphics_irq(drm_i915_private_t *dev_priv, u32 mask)
85} 85}
86 86
87/* For display hotplug interrupt */ 87/* For display hotplug interrupt */
88void 88static void
89ironlake_enable_display_irq(drm_i915_private_t *dev_priv, u32 mask) 89ironlake_enable_display_irq(drm_i915_private_t *dev_priv, u32 mask)
90{ 90{
91 if ((dev_priv->irq_mask_reg & mask) != 0) { 91 if ((dev_priv->irq_mask_reg & mask) != 0) {
@@ -305,7 +305,7 @@ static void i915_handle_rps_change(struct drm_device *dev)
305 return; 305 return;
306} 306}
307 307
308irqreturn_t ironlake_irq_handler(struct drm_device *dev) 308static irqreturn_t ironlake_irq_handler(struct drm_device *dev)
309{ 309{
310 drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private; 310 drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private;
311 int ret = IRQ_NONE; 311 int ret = IRQ_NONE;
@@ -1315,7 +1315,7 @@ int i915_vblank_swap(struct drm_device *dev, void *data,
1315 return -EINVAL; 1315 return -EINVAL;
1316} 1316}
1317 1317
1318struct drm_i915_gem_request * 1318static struct drm_i915_gem_request *
1319i915_get_tail_request(struct drm_device *dev) 1319i915_get_tail_request(struct drm_device *dev)
1320{ 1320{
1321 drm_i915_private_t *dev_priv = dev->dev_private; 1321 drm_i915_private_t *dev_priv = dev->dev_private;
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
index 3449a3b89e7f..eb6e6763ff56 100644
--- a/drivers/gpu/drm/i915/intel_dp.c
+++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -1513,7 +1513,7 @@ static const struct drm_encoder_funcs intel_dp_enc_funcs = {
1513 .destroy = intel_dp_encoder_destroy, 1513 .destroy = intel_dp_encoder_destroy,
1514}; 1514};
1515 1515
1516void 1516static void
1517intel_dp_hot_plug(struct intel_encoder *intel_encoder) 1517intel_dp_hot_plug(struct intel_encoder *intel_encoder)
1518{ 1518{
1519 struct intel_dp *intel_dp = container_of(intel_encoder, struct intel_dp, base); 1519 struct intel_dp *intel_dp = container_of(intel_encoder, struct intel_dp, base);
diff --git a/drivers/gpu/drm/i915/intel_fb.c b/drivers/gpu/drm/i915/intel_fb.c
index 7bdc96256bf5..42f8a512815a 100644
--- a/drivers/gpu/drm/i915/intel_fb.c
+++ b/drivers/gpu/drm/i915/intel_fb.c
@@ -219,8 +219,8 @@ static struct drm_fb_helper_funcs intel_fb_helper_funcs = {
219 .fb_probe = intel_fb_find_or_create_single, 219 .fb_probe = intel_fb_find_or_create_single,
220}; 220};
221 221
222int intel_fbdev_destroy(struct drm_device *dev, 222static int intel_fbdev_destroy(struct drm_device *dev,
223 struct intel_fbdev *ifbdev) 223 struct intel_fbdev *ifbdev)
224{ 224{
225 struct fb_info *info; 225 struct fb_info *info;
226 struct intel_framebuffer *ifb = &ifbdev->ifb; 226 struct intel_framebuffer *ifb = &ifbdev->ifb;