From: Stephen Rothwell Date: Fri, 20 May 2011 01:11:53 +0000 (+1000) Subject: signal.h need a definition of struct task_struct X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1477fcc290b3d5c2614bde98bf3b1154c538860d;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git signal.h need a definition of struct task_struct This fixes these build errors on powerpc: In file included from arch/powerpc/mm/fault.c:18: include/linux/signal.h:239: error: 'struct task_struct' declared inside parameter list include/linux/signal.h:239: error: its scope is only this definition or declaration, which is probably not what you want include/linux/signal.h:240: error: 'struct task_struct' declared inside parameter list .. Exposed by commit e66eed651fd1 ("list: remove prefetching from regular list iterators"), which removed the include of from . Without that, linux/signal.h no longer accidentally got the declaration of 'struct task_struct'. Fix by properly declaring the struct, rather than introducing any new header file dependency. Signed-off-by: Stephen Rothwell Signed-off-by: Linus Torvalds --- diff --git a/include/linux/signal.h b/include/linux/signal.h index fcd2b14b193..29a68ac7af8 100644 --- a/include/linux/signal.h +++ b/include/linux/signal.h @@ -7,6 +7,8 @@ #ifdef __KERNEL__ #include +struct task_struct; + /* for sysctl */ extern int print_fatal_signals; /*