]> git.karo-electronics.de Git - karo-tx-linux.git/commit
linux/compiler.h: add __must_hold macro for functions called with a lock held
authorJosh Triplett <josh@joshtriplett.org>
Thu, 25 Oct 2012 01:15:19 +0000 (12:15 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 26 Oct 2012 04:05:39 +0000 (15:05 +1100)
commitce0916bb99354fd9668a4014a1ee81874a306d1f
tree23ebf9dd8db93431e66612d99fb4bf102cd02992
parent3e3331df5253c27a1f2f56eda16e928c617dea5f
linux/compiler.h: add __must_hold macro for functions called with a lock held

linux/compiler.h has macros to denote functions that acquire or release
locks, but not to denote functions called with a lock held that return
with the lock still held.  Add a __must_hold macro to cover that case.

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Reported-by: Ed Cashin <ecashin@coraid.com>
Tested-by: Ed Cashin <ecashin@coraid.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/compiler.h