]> git.baikalelectronics.ru Git - kernel.git/commit
signal.h need a definition of struct task_struct
authorStephen Rothwell <sfr@canb.auug.org.au>
Fri, 20 May 2011 01:11:53 +0000 (11:11 +1000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 20 May 2011 01:22:20 +0000 (18:22 -0700)
commitd372e6c7d4e8bef122a9d9952f9a036894fa7325
tree3d0614dac48924dd8c47afbbf1fa867c3719dcd4
parent84f4e62f0395ce080df70c042d15adbe31af53b5
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 4f3ec9d1e882 ("list: remove prefetching from regular
list iterators"), which removed the include of <linux/prefetch.h> from
<linux/list.h>.

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 <sfr@canb.auug.org.au>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/signal.h