From: Andrew Morton Date: Fri, 3 Oct 2008 22:23:41 +0000 (-0700) Subject: include/linux/stacktrace.h: declare struct task_struct X-Git-Tag: firefly_0821_release~17874 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=897312bd240357c88ce906633703c324c6f0a5cd;p=firefly-linux-kernel-4.4.55.git include/linux/stacktrace.h: declare struct task_struct include/linux/stacktrace.h:13: warning: 'struct task_struct' declared inside parameter list (This might be a hard error on sparc64, which uses this header and has -Werror) Reported-by: "Randy.Dunlap" Acked-by: Ingo Molnar Cc: Peter Zijlstra Cc: Arjan van de Ven Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/stacktrace.h b/include/linux/stacktrace.h index 5da9794b2d78..b106fd8e0d5c 100644 --- a/include/linux/stacktrace.h +++ b/include/linux/stacktrace.h @@ -1,6 +1,8 @@ #ifndef __LINUX_STACKTRACE_H #define __LINUX_STACKTRACE_H +struct task_struct; + #ifdef CONFIG_STACKTRACE struct stack_trace { unsigned int nr_entries, max_entries;