MIPS: Fix elfcore.c build warning
authorRalf Baechle <ralf@linux-mips.org>
Thu, 11 Mar 2010 07:48:14 +0000 (08:48 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 12 Apr 2010 16:26:11 +0000 (17:26 +0100)
kernel/elfcore.c includes <linux/elf.h> which includes the <asm/elf.h>.  In
<asm/elf.h>, struct pt_regs is declared inside the parameter list of the
elf_dump_regs function which causes a kernel build warning.

Fixed by adding a forward declaration of struct pt_regs.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/elf.h

index e53d7bed5cda3b2abcca04f411b6477d4254afee..1184f6eea98b7dd831599c97a19efbed14ce020b 100644 (file)
@@ -310,6 +310,7 @@ do {                                                                        \
 
 #endif /* CONFIG_64BIT */
 
+struct pt_regs;
 struct task_struct;
 
 extern void elf_dump_regs(elf_greg_t *, struct pt_regs *regs);