Received: from milmhbs1.lsil.com (147.145.21.209) by coscas01.lsi.com
 (172.21.36.60) with Microsoft SMTP Server id 8.1.393.1; Wed, 10 Mar 2010
 22:43:27 -0700
Received: from mail2.lsil.com (mail2.lsil.com [147.145.40.22])	by
 milmhbs1.lsil.com (8.12.11/8.12.11) with ESMTP id o2B5hMqV016117	for
 <andy.sharp@lsi.com>; Wed, 10 Mar 2010 21:43:23 -0800
Received: from psmtp.com (na3sys009amx245.postini.com [74.125.149.129])	by
 mail2.lsil.com (8.12.11/8.12.11) with SMTP id o2B5cBsL003059	for
 <andy.sharp@lsi.com>; Wed, 10 Mar 2010 21:38:14 -0800 (PST)
Received: from source ([78.24.191.182]) by na3sys009amx245.postini.com
 ([74.125.148.14]) with SMTP;	Wed, 10 Mar 2010 21:43:21 PST
Received: from localhost.localdomain ([127.0.0.1]:46840 "EHLO
        eddie.linux-mips.org" rhost-flags-OK-OK-OK-FAIL)        by
 eddie.linux-mips.org with ESMTP id S1491174Ab0CKFm6 (ORCPT
        <rfc822;andy.sharp@lsi.com>); Thu, 11 Mar 2010 06:42:58 +0100
Received: with ECARTIS (v1.0.0; list linux-mips); Thu, 11 Mar 2010 06:42:40
 +0100 (CET)
Received: from mail.windriver.com ([147.11.1.11]:50512 "EHLO
        mail.windriver.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org
        with ESMTP id S1491775Ab0CKFmg (ORCPT
        <rfc822;linux-mips@linux-mips.org>); Thu, 11 Mar 2010 06:42:36 +0100
Received: from localhost.localdomain (pek-lpgbuild1.wrs.com [128.224.153.29])
        by mail.windriver.com (8.14.3/8.14.3) with ESMTP id o2B5gO9A011081;
        Wed, 10 Mar 2010 21:42:28 -0800 (PST)
From: Yang Shi <yang.shi@windriver.com>
To: "ralf@linux-mips.org" <ralf@linux-mips.org>
CC: "linux-mips@linux-mips.org" <linux-mips@linux-mips.org>
Sender: "linux-mips-bounce@linux-mips.org" <linux-mips-bounce@linux-mips.org>
Date: Wed, 10 Mar 2010 22:42:22 -0700
Subject: [PATCH] MIPS: Fix elfcore.c build warning
Thread-Topic: [PATCH] MIPS: Fix elfcore.c build warning
Thread-Index: AcrA3cZEpmYzOexiQEumiUjf/ILptw==
Message-ID: <1268286142-20615-1-git-send-email-yang.shi@windriver.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Exchange-Organization-AuthAs: Anonymous
X-MS-Exchange-Organization-AuthSource: coscas01.lsi.com
X-MS-Has-Attach:
X-Auto-Response-Suppress: All
X-MS-TNEF-Correlator:
x-scanned-by: MIMEDefang 2.39
errors-to: linux-mips-bounce@linux-mips.org
x-pstn-levels: (S:99.90000/99.90000 CV:99.9000 FC:95.5390 LC:95.5390
 R:95.9108 P:95.9108 M:97.0282 C:98.6951 )
x-pstn-settings: 3 (1.0000:1.0000) s cv gt3 gt2 gt1 r p m c 
x-pstn-addresses: from <yang.shi@windriver.com> [22/1] 
x-pstn-neptune: 1/1/1.00/85
x-list: linux-mips
x-original-sender: yang.shi@windriver.com
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0

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@windriver.com>
---
 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 */
=20
 struct task_struct;
+struct pt_regs;
=20
-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 *);
=20
--=20
1.6.3.3


