[PATCH 2.6.34-rc1] fix warning in kernel/elfcore.c from ARM's elf.h

Russell King - ARM Linux linux at arm.linux.org.uk
Thu Mar 11 06:01:20 EST 2010


On Thu, Mar 11, 2010 at 11:01:43AM +0100, Mikael Pettersson wrote:
> 2.6.34-rc1 added kernel/elfcore.c which includes <asm/elf.h>.
> On ARM, this results in:
> 
> In file included from include/linux/elf.h:7,
>                  from kernel/elfcore.c:1:
> /tmp/linux-2.6.34-rc1/arch/arm/include/asm/elf.h:101: warning: 'struct task_struct' declared inside parameter list
> /tmp/linux-2.6.34-rc1/arch/arm/include/asm/elf.h:101: warning: its scope is only this definition or declaration, which is probably not what you want
> 
> Including <linux/sched.h> seems a bit heavyweight, so this patch just
> adds a tentative declaration of struct task_struct in <asm/elf.h>.

Ok.



More information about the linux-arm-kernel mailing list