UML: Fix compiler warning due to missing task_struct declaration
authorJan Kiszka <jan.kiszka@web.de>
Mon, 19 Apr 2010 21:53:06 +0000 (23:53 +0200)
committerJiri Kosina <jkosina@suse.cz>
Tue, 20 Apr 2010 23:43:03 +0000 (01:43 +0200)
commit4cb3ca7cd7e2cae8d1daf5345ec99a1e8502cf3f
tree777528eff76317a8020ec9e972e9e46b57ecd31e
parent0df6e9402e9f6f77b2d431f35ba0f8906b9ca8f3
UML: Fix compiler warning due to missing task_struct declaration

We can't pull in linux/sched.h due to circular dependency, so just
forward-declare the struct.

This fixes the following warning:

  CC      arch/um/sys-i386/elfcore.o
In file included from /data/linux-2.6/include/linux/elf.h:8,
                 from /data/linux-2.6/arch/um/sys-i386/elfcore.c:2:
arch/um/sys-i386/asm/elf.h:78: warning: â€˜struct task_struct’ declared inside parameter list
arch/um/sys-i386/asm/elf.h:78: warning: its scope is only this definition or declaration, which is probably not what you want

I guess not many people build against i386 hosts anymore, so this
remained widely unnoticed.

Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
arch/um/sys-i386/asm/elf.h
arch/um/sys-x86_64/asm/elf.h