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


Groups > linux.kernel > #1471295 > unrolled thread

[PATCH] fix:nv10_fence: mark symbols static where possible

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

Back to article view | Back to linux.kernel


Contents

  [PATCH] fix:nv10_fence: mark symbols static where possible Baoyou Xie <baoyou.xie@linaro.org> - 2016-08-28 09:20 +0200

#1471295 — [PATCH] fix:nv10_fence: mark symbols static where possible

FromBaoyou Xie <baoyou.xie@linaro.org>
Date2016-08-28 09:20 +0200
Subject[PATCH] fix:nv10_fence: mark symbols static where possible
Message-ID<sb2xQ-74V-9@gated-at.bofh.it>
We get 1 warning about global functions without a declaration
in the nouveau nv10_fence driver when building with W=1:
drivers/gpu/drm/nouveau/nv10_fence.c:70:1: warning: no previous prototype for 'nv10_fence_context_new' [-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/nouveau/nv10_fence.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/nouveau/nv10_fence.c b/drivers/gpu/drm/nouveau/nv10_fence.c
index 4e3de34..619f79d 100644
--- a/drivers/gpu/drm/nouveau/nv10_fence.c
+++ b/drivers/gpu/drm/nouveau/nv10_fence.c
@@ -66,7 +66,7 @@ nv10_fence_context_del(struct nouveau_channel *chan)
 	nouveau_fence_context_free(&fctx->base);
 }
 
-int
+static int
 nv10_fence_context_new(struct nouveau_channel *chan)
 {
 	struct nv10_fence_chan *fctx;
-- 
2.7.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web