浏览代码

[PATCH] Need forward decl of task_struct in linux/debug_locks.h

Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
Kyle McMartin 18 年之前
父节点
当前提交
f86e45131f
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      include/linux/debug_locks.h

+ 2 - 0
include/linux/debug_locks.h

@@ -43,6 +43,8 @@ extern int debug_locks_off(void);
 # define locking_selftest()	do { } while (0)
 #endif
 
+struct task_struct;
+
 #ifdef CONFIG_LOCKDEP
 extern void debug_show_all_locks(void);
 extern void debug_show_held_locks(struct task_struct *task);