Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5216d530 authored by Fengguang Wu's avatar Fengguang Wu Committed by Ingo Molnar
Browse files

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: default avatarFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: default avatarPeter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/527d1787.ThzXGoUspZWehFDl\%fengguang.wu@intel.com


Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 838cc7b4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1232,7 +1232,7 @@ static int noop_count(struct lock_list *entry, void *data)
	return 0;
}

unsigned long __lockdep_count_forward_deps(struct lock_list *this)
static unsigned long __lockdep_count_forward_deps(struct lock_list *this)
{
	unsigned long  count = 0;
	struct lock_list *uninitialized_var(target_entry);
@@ -1258,7 +1258,7 @@ unsigned long lockdep_count_forward_deps(struct lock_class *class)
	return ret;
}

unsigned long __lockdep_count_backward_deps(struct lock_list *this)
static unsigned long __lockdep_count_backward_deps(struct lock_list *this)
{
	unsigned long  count = 0;
	struct lock_list *uninitialized_var(target_entry);