Skip to content
Snippets Groups Projects
Commit 3d709ab5 authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

checkpatch.pl: Suggest lockdep instead of asserting !spin_is_locked()


This commit points people who might otherwise code up something like
WARN_ON(!spin_is_locked(&mylock)) to lockdep_assert_held(&mylock).

Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.ibm.com>
Cc: Andy Whitcroft <apw@canonical.com>
Cc: Joe Perches <joe@perches.com>
parent 9189c7e7
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment