]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
checkpatch: check for spin_is_locked()
authorAndi Kleen <ak@linux.intel.com>
Wed, 4 Apr 2012 00:08:27 +0000 (10:08 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 11 Apr 2012 04:45:51 +0000 (14:45 +1000)
commit99cb4dd08b41a60b478ea983ac12c0d961eedae1
tree810e8d91371186a6aef6d1bdbb7b9ac0021c47ee
parente40a065bb864682fd377ff2230faa64726f69866
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