kernel/elfcore.c includes elf.h which includes arch specific elf.h. In MIPS elf.h, 'struct pt_regs' is declared inside the parameter list of elf_dump_regs function. This cause kernel build warning. So, move the declaration out of the function parameter list to remove build warning. Signed-off-by: Yang Shi <yang.shi@xxxxxxxxxxxxx> --- arch/mips/include/asm/elf.h | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/arch/mips/include/asm/elf.h b/arch/mips/include/asm/elf.h index e53d7be..370bf50 100644 --- a/arch/mips/include/asm/elf.h +++ b/arch/mips/include/asm/elf.h @@ -311,8 +311,9 @@ do { \ #endif /* CONFIG_64BIT */ struct task_struct; +struct pt_regs; -extern void elf_dump_regs(elf_greg_t *, struct pt_regs *regs); +extern void elf_dump_regs(elf_greg_t *, struct pt_regs *); extern int dump_task_regs(struct task_struct *, elf_gregset_t *); extern int dump_task_fpu(struct task_struct *, elf_fpregset_t *); -- 1.6.3.3