From: Ralf Baechle Date: Thu, 11 Mar 2010 07:48:14 +0000 (+0100) Subject: MIPS: Fix elfcore.c build warning X-Git-Tag: 2.1b_release~8653^2~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d5d3102b9adec0a34eb5899324b62a4a3d34183e;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git MIPS: Fix elfcore.c build warning kernel/elfcore.c includes which includes the . In , 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 --- diff --git a/arch/mips/include/asm/elf.h b/arch/mips/include/asm/elf.h index e53d7be..1184f6e 100644 --- a/arch/mips/include/asm/elf.h +++ b/arch/mips/include/asm/elf.h @@ -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);