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


Groups > linux.kernel > #1425343 > unrolled thread

[PATCH -next] jump_label: Fix non static symbol warning

Started byweiyj_lk@163.com
First post2016-06-17 19:30 +0200
Last post2016-06-17 19:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH -next] jump_label: Fix non static symbol warning weiyj_lk@163.com - 2016-06-17 19:30 +0200

#1425343 — [PATCH -next] jump_label: Fix non static symbol warning

Fromweiyj_lk@163.com
Date2016-06-17 19:30 +0200
Subject[PATCH -next] jump_label: Fix non static symbol warning
Message-ID<rL5KF-Zn-13@gated-at.bofh.it>
From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>

Fixes the following sparse warnings:

kernel/jump_label.c:473:23: warning:
 symbol 'jump_label_module_nb' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
---
 kernel/jump_label.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/jump_label.c b/kernel/jump_label.c
index 3c67e5e..6077b3b 100644
--- a/kernel/jump_label.c
+++ b/kernel/jump_label.c
@@ -470,7 +470,7 @@ jump_label_module_notify(struct notifier_block *self, unsigned long val,
 	return notifier_from_errno(ret);
 }
 
-struct notifier_block jump_label_module_nb = {
+static struct notifier_block jump_label_module_nb = {
 	.notifier_call = jump_label_module_notify,
 	.priority = 1, /* higher than tracepoints */
 };

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web