[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Thu, 7 Jul 2016 01:32:26 -0700
From: tip-bot for Wei Yongjun <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: yongjun_wei@...ndmicro.com.cn, hpa@...or.com,
akpm@...ux-foundation.org, tglx@...utronix.de,
paulmck@...ux.vnet.ibm.com, torvalds@...ux-foundation.org,
peterz@...radead.org, linux-kernel@...r.kernel.org,
mingo@...nel.org
Subject: [tip:locking/core] locking/static_keys: Fix non static symbol
Sparse warning
Commit-ID: 885885f6b88d22f81e67ee6a61561e480b27d27a
Gitweb: http://git.kernel.org/tip/885885f6b88d22f81e67ee6a61561e480b27d27a
Author: Wei Yongjun <yongjun_wei@...ndmicro.com.cn>
AuthorDate: Fri, 17 Jun 2016 17:19:40 +0000
Committer: Ingo Molnar <mingo@...nel.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@...ndmicro.com.cn>
Signed-off-by: Peter Zijlstra (Intel) <peterz@...radead.org>
Cc: Andrew Morton <akpm@...ux-foundation.org>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Paul E. McKenney <paulmck@...ux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@...radead.org>
Cc: Thomas Gleixner <tglx@...utronix.de>
Link: http://lkml.kernel.org/r/1466183980-8903-1-git-send-email-weiyj_lk@163.com
Signed-off-by: Ingo Molnar <mingo@...nel.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 */
};
Powered by blists - more mailing lists