aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFengguang Wu <fengguang.wu@intel.com>2013-11-08 11:55:35 -0500
committerIngo Molnar <mingo@kernel.org>2013-11-13 07:50:17 -0500
commit5216d530bbd8581c927b250a11533c2a31b57510 (patch)
tree4a81e6af74b3531c07ce1a80ae8aaa12d174cf01
parent838cc7b488f89ee642fd8336e8e1b620c8c3ece2 (diff)
locking/lockdep: Mark __lockdep_count_forward_deps() as static
There are new Sparse warnings: >> kernel/locking/lockdep.c:1235:15: sparse: symbol '__lockdep_count_forward_deps' was not declared. Should it be static? >> kernel/locking/lockdep.c:1261:15: sparse: symbol '__lockdep_count_backward_deps' was not declared. Should it be static? Please consider folding the attached diff :-) Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/527d1787.ThzXGoUspZWehFDl\%fengguang.wu@intel.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r--kernel/locking/lockdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c
index 4e8e14c34e42..576ba756a32d 100644
--- a/kernel/locking/lockdep.c
+++ b/kernel/locking/lockdep.c
@@ -1232,7 +1232,7 @@ static int noop_count(struct lock_list *entry, void *data)
1232 return 0; 1232 return 0;
1233} 1233}
1234 1234
1235unsigned long __lockdep_count_forward_deps(struct lock_list *this) 1235static unsigned long __lockdep_count_forward_deps(struct lock_list *this)
1236{ 1236{
1237 unsigned long count = 0; 1237 unsigned long count = 0;
1238 struct lock_list *uninitialized_var(target_entry); 1238 struct lock_list *uninitialized_var(target_entry);
@@ -1258,7 +1258,7 @@ unsigned long lockdep_count_forward_deps(struct lock_class *class)
1258 return ret; 1258 return ret;
1259} 1259}
1260 1260
1261unsigned long __lockdep_count_backward_deps(struct lock_list *this) 1261static unsigned long __lockdep_count_backward_deps(struct lock_list *this)
1262{ 1262{
1263 unsigned long count = 0; 1263 unsigned long count = 0;
1264 struct lock_list *uninitialized_var(target_entry); 1264 struct lock_list *uninitialized_var(target_entry);