From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030569AbcGGIey (ORCPT ); Thu, 7 Jul 2016 04:34:54 -0400 Received: from terminus.zytor.com ([198.137.202.10]:38578 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030526AbcGGIdJ (ORCPT ); Thu, 7 Jul 2016 04:33:09 -0400 Date: Thu, 7 Jul 2016 01:32:26 -0700 From: tip-bot for Wei Yongjun Message-ID: Cc: yongjun_wei@trendmicro.com.cn, hpa@zytor.com, akpm@linux-foundation.org, tglx@linutronix.de, paulmck@linux.vnet.ibm.com, torvalds@linux-foundation.org, peterz@infradead.org, linux-kernel@vger.kernel.org, mingo@kernel.org Reply-To: mingo@kernel.org, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, peterz@infradead.org, tglx@linutronix.de, paulmck@linux.vnet.ibm.com, hpa@zytor.com, yongjun_wei@trendmicro.com.cn, akpm@linux-foundation.org In-Reply-To: <1466183980-8903-1-git-send-email-weiyj_lk@163.com> References: <1466183980-8903-1-git-send-email-weiyj_lk@163.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:locking/core] locking/static_keys: Fix non static symbol Sparse warning Git-Commit-ID: 885885f6b88d22f81e67ee6a61561e480b27d27a X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 885885f6b88d22f81e67ee6a61561e480b27d27a Gitweb: http://git.kernel.org/tip/885885f6b88d22f81e67ee6a61561e480b27d27a Author: Wei Yongjun AuthorDate: Fri, 17 Jun 2016 17:19:40 +0000 Committer: Ingo Molnar 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 Signed-off-by: Peter Zijlstra (Intel) Cc: Andrew Morton Cc: Linus Torvalds Cc: Paul E. McKenney Cc: Peter Zijlstra Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/1466183980-8903-1-git-send-email-weiyj_lk@163.com Signed-off-by: Ingo Molnar --- 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 */ };