浏览代码

stacktrace: add forward-declaration struct task_struct

This is needed if the header is to be free-standing.

Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
Vegard Nossum 17 年之前
父节点
当前提交
b618ad31bb
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      include/linux/stacktrace.h

+ 2 - 0
include/linux/stacktrace.h

@@ -4,6 +4,8 @@
 struct task_struct;
 
 #ifdef CONFIG_STACKTRACE
+struct task_struct;
+
 struct stack_trace {
 	unsigned int nr_entries, max_entries;
 	unsigned long *entries;