]> git.karo-electronics.de Git - karo-tx-linux.git/commit
checkpatch: check for spin_is_locked()
authorAndi Kleen <ak@linux.intel.com>
Thu, 3 May 2012 05:44:11 +0000 (15:44 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 3 May 2012 05:46:42 +0000 (15:46 +1000)
commitb88cda3ecb0897035dcbcb3833c4a41f74522a28
tree8c9715db82209e04a0deb7b735bc0b2745ce4257
parent83ae468c7096b7ab4c2846d895953f02bcefabd6
checkpatch: check for spin_is_locked()

spin_is_locked() is usually misued. In checkpatch.pl:

- warn when it is used at all

- error out when it is asserted on free, because that's usually broken
  (e.g.  doesn't work on on uni processor builds).  Recommend
  lockdep_assert_held() instead.

[joe@perches.com: some improvements]
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Cc: Andy Whitcroft <apw@canonical.com>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
scripts/checkpatch.pl