]> 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>
Fri, 9 Nov 2012 03:05:11 +0000 (14:05 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 12 Nov 2012 04:17:32 +0000 (15:17 +1100)
commit0716a9ab2226d82ecebdb3d8fe10147b2dc874ff
treec6c5ba5dbdeb69626358f4a34266bb756bc24ae2
parent52218091e31dd18aaa814add27382018703e648b
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