Merge branch 'for-3.11' of git://linux-nfs.org/~bfields/linux
[linux-2.6.git] / include / linux / mutex-debug.h
blob4ac8b1977b73c53cc915b8f7ee29d87bdba8c23a
1 #ifndef __LINUX_MUTEX_DEBUG_H
2 #define __LINUX_MUTEX_DEBUG_H
4 #include <linux/linkage.h>
5 #include <linux/lockdep.h>
6 #include <linux/debug_locks.h>
8 /*
9 * Mutexes - debugging helpers:
12 #define __DEBUG_MUTEX_INITIALIZER(lockname) \
13 , .magic = &lockname
15 #define mutex_init(mutex) \
16 do { \
17 static struct lock_class_key __key; \
19 __mutex_init((mutex), #mutex, &__key); \
20 } while (0)
22 extern void mutex_destroy(struct mutex *lock);
24 #endif