From: Jiang Biao Date: Tue, 1 Nov 2016 03:49:45 +0000 (+0800) Subject: drm/gma500: make function static to eliminate compiling warning X-Git-Tag: v4.10-rc1~154^2~36^2~28 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4470dc9cca39c184fdd7d9c12cb661f066f9b0c2;p=karo-tx-linux.git 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. Signed-off-by: Jiang Biao Signed-off-by: Daniel Vetter Link: http://patchwork.freedesktop.org/patch/msgid/1477972185-24826-1-git-send-email-jiang.biao2@zte.com.cn --- diff --git a/drivers/gpu/drm/gma500/gtt.c b/drivers/gpu/drm/gma500/gtt.c index 76aea2e7fb9d..3f4f424196b2 100644 --- a/drivers/gpu/drm/gma500/gtt.c +++ b/drivers/gpu/drm/gma500/gtt.c @@ -131,7 +131,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;