Skip to content

Commit

Permalink
locking/lockdep: Mark __lockdep_count_forward_deps() as static
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/527d1787.ThzXGoUspZWehFDl\%[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
  • Loading branch information
Fengguang Wu authored and Ingo Molnar committed Nov 13, 2013
1 parent 838cc7b commit 5216d53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/locking/lockdep.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 5216d53

Please sign in to comment.