checkpatch.pl: Suggest lockdep instead of asserting !spin_is_locked()
authorPaul E. McKenney <paulmck@linux.ibm.com>
Sun, 11 Nov 2018 18:49:10 +0000 (10:49 -0800)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Mon, 12 Nov 2018 17:03:59 +0000 (09:03 -0800)
commit3d709ab5a1767d422223e84cf5c20f0d33738274
tree9f76e76c32d69c84bbfc045f1d315284c4d375ed
parent9189c7e706038a508567cb2e46ccdb68b08f4ac7
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: Paul E. McKenney <paulmck@linux.ibm.com>
Cc: Andy Whitcroft <apw@canonical.com>
Cc: Joe Perches <joe@perches.com>
scripts/checkpatch.pl