]> git.karo-electronics.de Git - karo-tx-linux.git/commit
checkpatch: check for spin_is_locked()
authorAndi Kleen <ak@linux.intel.com>
Wed, 25 Apr 2012 01:03:53 +0000 (11:03 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 30 Apr 2012 05:17:29 +0000 (15:17 +1000)
commitdb941cd7e224614e2edaa05a6f46db9becef7007
treec1dd0418720227ead87da3411ec06b996c97d33c
parent366c0450cd228f1ad2a4a19f548782d2d5803aa3
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