* [PATCH -next] jump_label: Fix non static symbol warning
@ 2016-06-17 17:19 weiyj_lk
2016-07-07 8:32 ` [tip:locking/core] locking/static_keys: Fix non static symbol Sparse warning tip-bot for Wei Yongjun
0 siblings, 1 reply; 2+ messages in thread
From: weiyj_lk @ 2016-06-17 17:19 UTC (permalink / raw)
To: Peter Zijlstra; +Cc: Wei Yongjun, linux-kernel
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 */
};
^ permalink raw reply [flat|nested] 2+ messages in thread
* [tip:locking/core] locking/static_keys: Fix non static symbol Sparse warning
2016-06-17 17:19 [PATCH -next] jump_label: Fix non static symbol warning weiyj_lk
@ 2016-07-07 8:32 ` tip-bot for Wei Yongjun
0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for Wei Yongjun @ 2016-07-07 8:32 UTC (permalink / raw)
To: linux-tip-commits
Cc: yongjun_wei, hpa, akpm, tglx, paulmck, torvalds, peterz,
linux-kernel, mingo
Commit-ID: 885885f6b88d22f81e67ee6a61561e480b27d27a
Gitweb: http://git.kernel.org/tip/885885f6b88d22f81e67ee6a61561e480b27d27a
Author: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
AuthorDate: Fri, 17 Jun 2016 17:19:40 +0000
Committer: Ingo Molnar <mingo@kernel.org>
CommitDate: Thu, 7 Jul 2016 09:06:46 +0200
locking/static_keys: Fix non static symbol Sparse warning
Fix 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>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1466183980-8903-1-git-send-email-weiyj_lk@163.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
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 05254ee..ac4ab95 100644
--- a/kernel/jump_label.c
+++ b/kernel/jump_label.c
@@ -422,7 +422,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 */
};
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-07-07 8:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-17 17:19 [PATCH -next] jump_label: Fix non static symbol warning weiyj_lk
2016-07-07 8:32 ` [tip:locking/core] locking/static_keys: Fix non static symbol Sparse warning tip-bot for Wei Yongjun
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome