|
@@ -1,6 +1,8 @@
|
|
#ifndef __LINUX_DEBUG_LOCKING_H
|
|
#ifndef __LINUX_DEBUG_LOCKING_H
|
|
#define __LINUX_DEBUG_LOCKING_H
|
|
#define __LINUX_DEBUG_LOCKING_H
|
|
|
|
|
|
|
|
+#include <linux/kernel.h>
|
|
|
|
+
|
|
struct task_struct;
|
|
struct task_struct;
|
|
|
|
|
|
extern int debug_locks;
|
|
extern int debug_locks;
|
|
@@ -11,14 +13,6 @@ extern int debug_locks_silent;
|
|
*/
|
|
*/
|
|
extern int debug_locks_off(void);
|
|
extern int debug_locks_off(void);
|
|
|
|
|
|
-/*
|
|
|
|
- * In the debug case we carry the caller's instruction pointer into
|
|
|
|
- * other functions, but we dont want the function argument overhead
|
|
|
|
- * in the nondebug case - hence these macros:
|
|
|
|
- */
|
|
|
|
-#define _RET_IP_ (unsigned long)__builtin_return_address(0)
|
|
|
|
-#define _THIS_IP_ ({ __label__ __here; __here: (unsigned long)&&__here; })
|
|
|
|
-
|
|
|
|
#define DEBUG_LOCKS_WARN_ON(c) \
|
|
#define DEBUG_LOCKS_WARN_ON(c) \
|
|
({ \
|
|
({ \
|
|
int __ret = 0; \
|
|
int __ret = 0; \
|