]> git.kernelconcepts.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>
Fri, 9 Nov 2012 03:05:11 +0000 (14:05 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 14 Nov 2012 04:55:25 +0000 (15:55 +1100)
commit07ec0ba2ba272f8663d1cde663750f464eb27d0d
tree8995e4332db903674c38f49506436d04dc3e66d8
parente45dfdddb27dbb526a1df50b8cecaad2cbacc29a
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