From: Andrew Morton In file included from include/asm/thread_info.h:39, from include/linux/thread_info.h:21, from include/linux/preempt.h:9, from include/linux/spinlock.h:49, from include/linux/seqlock.h:29, from include/linux/time.h:8, from include/linux/timex.h:57, from include/linux/sched.h:53, from arch/s390/kernel/asm-offsets.c:7: include/asm/processor.h:184: warning: 'struct seq_file' declared inside parameter list include/asm/processor.h:184: warning: its scope is only this definition or declaration, which is probably not what you want arch/s390/kernel/traps.c: In function 'task_show_regs': arch/s390/kernel/traps.c:226: error: implicit declaration of function 'seq_printf' Cc: Eric W. Biederman Cc: Heiko Carstens Cc: Martin Schwidefsky Cc: Kamalesh Babulal Signed-off-by: Andrew Morton --- arch/s390/kernel/traps.c | 1 + include/asm-s390/processor.h | 1 + 2 files changed, 2 insertions(+) diff -puN arch/s390/kernel/traps.c~proc-seqfile-convert-proc_pid_status-to-properly-handle-pid-namespaces-fix-2 arch/s390/kernel/traps.c --- a/arch/s390/kernel/traps.c~proc-seqfile-convert-proc_pid_status-to-properly-handle-pid-namespaces-fix-2 +++ a/arch/s390/kernel/traps.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include diff -puN include/asm-s390/processor.h~proc-seqfile-convert-proc_pid_status-to-properly-handle-pid-namespaces-fix-2 include/asm-s390/processor.h --- a/include/asm-s390/processor.h~proc-seqfile-convert-proc_pid_status-to-properly-handle-pid-namespaces-fix-2 +++ a/include/asm-s390/processor.h @@ -161,6 +161,7 @@ struct stack_frame { /* Forward declaration, a strange C thing */ struct task_struct; struct mm_struct; +struct seq_file; /* Free all resources held by a thread. */ extern void release_thread(struct task_struct *); _