linux-mips
[Top] [All Lists]

Re: [PATCH] MIPS: Fix elfcore.c build warning

To: Yang Shi <yang.shi@windriver.com>
Subject: Re: [PATCH] MIPS: Fix elfcore.c build warning
From: Ralf Baechle <ralf@linux-mips.org>
Date: Thu, 11 Mar 2010 08:51:52 +0100
Cc: linux-mips@linux-mips.org
In-reply-to: <1268286142-20615-1-git-send-email-yang.shi@windriver.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1268286142-20615-1-git-send-email-yang.shi@windriver.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.20 (2009-08-17)
On Thu, Mar 11, 2010 at 01:42:22PM +0800, Yang Shi wrote:

> 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.

What fixes the warning is the forward declaration of struct pt_regs not
removing the function parameter name.  So I've added a patch which does
just that.

Thanks!

  Ralf

<Prev in Thread] Current Thread [Next in Thread>