diff mbox

drm/gma500: make function static to eliminate compiling warning

Message ID 1477972185-24826-1-git-send-email-jiang.biao2@zte.com.cn (mailing list archive)
State New, archived
Headers show

Commit Message

Jiang Biao Nov. 1, 2016, 3:49 a.m. UTC
psb_gtt_remove is only used in this file, and make it static to 
eliminate missing-prototypes compiling warning.

Signed-off-by: Jiang Biao <jiang.biao2@zte.com.cn>
---
 drivers/gpu/drm/gma500/gtt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Daniel Vetter Nov. 8, 2016, 9:44 a.m. UTC | #1
On Tue, Nov 01, 2016 at 11:49:45AM +0800, Jiang Biao wrote:
> psb_gtt_remove is only used in this file, and make it static to 
> eliminate missing-prototypes compiling warning.
> 
> Signed-off-by: Jiang Biao <jiang.biao2@zte.com.cn>

Applied to drm-misc, thanks.
-Daniel

> ---
>  drivers/gpu/drm/gma500/gtt.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/gma500/gtt.c b/drivers/gpu/drm/gma500/gtt.c
> index 8f69225..e505f94 100644
> --- a/drivers/gpu/drm/gma500/gtt.c
> +++ b/drivers/gpu/drm/gma500/gtt.c
> @@ -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;
> -- 
> 2.1.0
>
diff mbox

Patch

diff --git a/drivers/gpu/drm/gma500/gtt.c b/drivers/gpu/drm/gma500/gtt.c
index 8f69225..e505f94 100644
--- a/drivers/gpu/drm/gma500/gtt.c
+++ b/drivers/gpu/drm/gma500/gtt.c
@@ -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;