Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1479106 > unrolled thread

[PATCH] drm/vc4: mark vc4_bo_cache_purge() static

Started byBaoyou Xie <baoyou.xie@linaro.org>
First post2016-09-08 13:10 +0200
Last post2016-09-08 13:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] drm/vc4: mark vc4_bo_cache_purge() static Baoyou Xie <baoyou.xie@linaro.org> - 2016-09-08 13:10 +0200

#1479106 — [PATCH] drm/vc4: mark vc4_bo_cache_purge() static

FromBaoyou Xie <baoyou.xie@linaro.org>
Date2016-09-08 13:10 +0200
Subject[PATCH] drm/vc4: mark vc4_bo_cache_purge() static
Message-ID<sf5nt-53y-47@gated-at.bofh.it>
We get 1 warning when building kernel with W=1:
drivers/gpu/drm/vc4/vc4_bo.c:147:6: warning: no previous prototype for 'vc4_bo_cache_purge' [-Wmissing-prototypes]

In fact, this function is only used in the file in which it is
declared and don't need a declaration, but can be made static.
So this patch marks it 'static'.

Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
---
 drivers/gpu/drm/vc4/vc4_bo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/vc4/vc4_bo.c b/drivers/gpu/drm/vc4/vc4_bo.c
index 59adcf8..3f6704c 100644
--- a/drivers/gpu/drm/vc4/vc4_bo.c
+++ b/drivers/gpu/drm/vc4/vc4_bo.c
@@ -144,7 +144,7 @@ static struct list_head *vc4_get_cache_list_for_size(struct drm_device *dev,
 	return &vc4->bo_cache.size_list[page_index];
 }
 
-void vc4_bo_cache_purge(struct drm_device *dev)
+static void vc4_bo_cache_purge(struct drm_device *dev)
 {
 	struct vc4_dev *vc4 = to_vc4_dev(dev);
 
-- 
2.7.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web