]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5a450d0aa2694d8858c659d4482df3253e7ebf0d
tree355f868f4c149ac63fbc70445e56c3ba2bde2916
parent8dc9a2c60795d45e6d632e15e384cf11b986d40e
MIPS: Fix elfcore.c build warning

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