Skip to content

Commit

Permalink
lockdep: Fix up warning
Browse files Browse the repository at this point in the history
On Sun, 2011-07-24 at 21:06 -0400, Arnaud Lacombe wrote:

> /src/linux/linux/kernel/lockdep.c: In function 'mark_held_locks':
> /src/linux/linux/kernel/lockdep.c:2471:31: warning: comparison of
> distinct pointer types lacks a cast

The warning is harmless in this case, but the below makes it go away.

Reported-by: Arnaud Lacombe <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/1311588599.2617.56.camel@laptop
Signed-off-by: Ingo Molnar <[email protected]>
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Aug 4, 2011
1 parent 7d36b26 commit 70a0686
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/lockdep.c
Original file line number Diff line number Diff line change
Expand Up @@ -2468,7 +2468,7 @@ mark_held_locks(struct task_struct *curr, enum mark_type mark)

BUG_ON(usage_bit >= LOCK_USAGE_STATES);

if (hlock_class(hlock)->key == &__lockdep_no_validate__)
if (hlock_class(hlock)->key == __lockdep_no_validate__.subkeys)
continue;

if (!mark_lock(curr, hlock, usage_bit))
Expand Down

0 comments on commit 70a0686

Please sign in to comment.