MIPS: Fix elfcore.c build warning

Previous thread: MIPS: Octeon: Remove vestiges of CONFIG_CAVIUM_RESERVE32_USE_WIRED_TLB by Linux Kernel Mailing List on Monday, April 12, 2010 - 7:59 pm. (1 message)

Next thread: MIPS: Trace: Don't trace irqsoff for the idle process by Linux Kernel Mailing List on Monday, April 12, 2010 - 7:59 pm. (1 message)
From: Linux Kernel Mailing List
Date: Monday, April 12, 2010 - 7:59 pm

Gitweb:     http://git.kernel.org/linus/d5d3102b9adec0a34eb5899324b62a4a3d34183e
Commit:     d5d3102b9adec0a34eb5899324b62a4a3d34183e
Parent:     7ea4a6891b68fe60bf4eee41a7ef38d524b0aebd
Author:     Ralf Baechle <ralf@linux-mips.org>
AuthorDate: Thu Mar 11 08:48:14 2010 +0100
Committer:  Ralf Baechle <ralf@linux-mips.org>
CommitDate: Mon Apr 12 17:26:11 2010 +0100

    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 |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

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);
--

Previous thread: MIPS: Octeon: Remove vestiges of CONFIG_CAVIUM_RESERVE32_USE_WIRED_TLB by Linux Kernel Mailing List on Monday, April 12, 2010 - 7:59 pm. (1 message)

Next thread: MIPS: Trace: Don't trace irqsoff for the idle process by Linux Kernel Mailing List on Monday, April 12, 2010 - 7:59 pm. (1 message)