diff options
Diffstat (limited to 'include/linux/debug_locks.h')
| -rw-r--r-- | include/linux/debug_locks.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/include/linux/debug_locks.h b/include/linux/debug_locks.h index f4a5871767f5..4aaa4afb1cb9 100644 --- a/include/linux/debug_locks.h +++ b/include/linux/debug_locks.h | |||
| @@ -1,6 +1,8 @@ | |||
| 1 | #ifndef __LINUX_DEBUG_LOCKING_H | 1 | #ifndef __LINUX_DEBUG_LOCKING_H |
| 2 | #define __LINUX_DEBUG_LOCKING_H | 2 | #define __LINUX_DEBUG_LOCKING_H |
| 3 | 3 | ||
| 4 | #include <linux/kernel.h> | ||
| 5 | |||
| 4 | struct task_struct; | 6 | struct task_struct; |
| 5 | 7 | ||
| 6 | extern int debug_locks; | 8 | extern int debug_locks; |
| @@ -11,14 +13,6 @@ extern int debug_locks_silent; | |||
| 11 | */ | 13 | */ |
| 12 | extern int debug_locks_off(void); | 14 | extern int debug_locks_off(void); |
| 13 | 15 | ||
| 14 | /* | ||
| 15 | * In the debug case we carry the caller's instruction pointer into | ||
| 16 | * other functions, but we dont want the function argument overhead | ||
| 17 | * in the nondebug case - hence these macros: | ||
| 18 | */ | ||
| 19 | #define _RET_IP_ (unsigned long)__builtin_return_address(0) | ||
| 20 | #define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; }) | ||
| 21 | |||
| 22 | #define DEBUG_LOCKS_WARN_ON(c) \ | 16 | #define DEBUG_LOCKS_WARN_ON(c) \ |
| 23 | ({ \ | 17 | ({ \ |
| 24 | int __ret = 0; \ | 18 | int __ret = 0; \ |
