]> 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>
Tue, 23 Oct 2012 02:50:41 +0000 (13:50 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 23 Oct 2012 03:12:03 +0000 (14:12 +1100)
commitd0e90c1d203cd6d4fa7901d9a7c45bbfe3fa0124
tree3c7ba7e40bbd0526ff621750210f61b9c93061a0
parentdd500bfd8658884b7db0725ad55397b6a4cd6a07
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