Skip to contentSkip to conversation

drm/gma500: make function static to eliminate compiling warning

PATCH Applied Jiang Biao 2 participants 2 messages Nov 1, 2016 – Nov 8, 2016

Subsystems (3)
lore
Share & tools
lore

Jiang Biao

author
#0 lore raw

PATCH 1/1 drm/gma500: make function static to eliminate compiling warning

psb_gtt_remove is only used in this file, and make it static to eliminate missing-prototypes compiling warning.

---
 drivers/gpu/drm/gma500/gtt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/gma500/gtt.c +1 -1
index 8f69225..e505f94 100644
@@ -130,7 +130,7 @@ static int psb_gtt_insert(struct drm_device *dev, struct gtt_range *r,
  *	page table entries with the dummy page. This is protected via the gtt
  *	mutex which the caller must hold.
  */
-void psb_gtt_remove(struct drm_device *dev, struct gtt_range *r)
+static void psb_gtt_remove(struct drm_device *dev, struct gtt_range *r)
 {
 	struct drm_psb_private *dev_priv = dev->dev_private;
 	u32 __iomem *gtt_slot;
Signature · 6 lines
2.1.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw
Quoted 4 lines · Jiang Biao

psb_gtt_remove is only used in this file, and make it static to eliminate missing-prototypes compiling warning.

Applied to drm-misc, thanks.
-Daniel

Quoted 20 lines
---
 drivers/gpu/drm/gma500/gtt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/gma500/gtt.c +1 -1
index 8f69225..e505f94 100644
@@ -130,7 +130,7 @@ static int psb_gtt_insert(struct drm_device *dev, struct gtt_range *r,
  *	page table entries with the dummy page. This is protected via the gtt
  *	mutex which the caller must hold.
  */
-void psb_gtt_remove(struct drm_device *dev, struct gtt_range *r)
+static void psb_gtt_remove(struct drm_device *dev, struct gtt_range *r)
 {
 	struct drm_psb_private *dev_priv = dev->dev_private;
 	u32 __iomem *gtt_slot;
Signature · 1 line
2.1.0
Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel