]> 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>
Fri, 9 Nov 2012 03:09:09 +0000 (14:09 +1100)
commitb07fb9e5d46affe4bff285027868d1e226fbe29d
tree4f90d38aaaaddd146abd950e7f7de662c6bbd17a
parent0447e122f28fc18aa5f7d19a561b107064237caa
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