[Top] [All Lists]

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

To: Yang Shi <>
Subject: Re: [PATCH] MIPS: Fix elfcore.c build warning
From: Ralf Baechle <>
Date: Thu, 11 Mar 2010 08:51:52 +0100
In-reply-to: <>
Original-recipient: rfc822;
References: <>
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.



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