linux-mips
[Top] [All Lists]

[PATCH 1/3] [MIPS] Malta: make a needlessly global integer variable stat

To: ralf@linux-mips.org, linux-mips@linux-mips.org
Subject: [PATCH 1/3] [MIPS] Malta: make a needlessly global integer variable static
From: Dmitri Vorobiev <dmitri.vorobiev@movial.com>
Date: Mon, 23 Mar 2009 00:12:27 +0200
Cc: Dmitri Vorobiev <dmitri.vorobiev@movial.com>
In-reply-to: <1237759949-8223-1-git-send-email-dmitri.vorobiev@movial.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1237759949-8223-1-git-send-email-dmitri.vorobiev@movial.com>
Sender: linux-mips-bounce@linux-mips.org
The variable `mips_revision_corid' is needlessly defined global in
arch/mips/mti-malta/malta-init.c, and this patch makes it static.

Build-tested with malta_defconfig.

Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@movial.com>
---
 arch/mips/include/asm/mips-boards/generic.h |    2 --
 arch/mips/mti-malta/malta-init.c            |    2 +-
 2 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/arch/mips/include/asm/mips-boards/generic.h 
b/arch/mips/include/asm/mips-boards/generic.h
index 7f0b034..c0da1a8 100644
--- a/arch/mips/include/asm/mips-boards/generic.h
+++ b/arch/mips/include/asm/mips-boards/generic.h
@@ -71,8 +71,6 @@
 
 #define MIPS_REVISION_CORID (((*(volatile u32 *)ioremap(MIPS_REVISION_REG, 4)) 
>> 10) & 0x3f)
 
-extern int mips_revision_corid;
-
 #define MIPS_REVISION_SCON_OTHER          0
 #define MIPS_REVISION_SCON_SOCITSC        1
 #define MIPS_REVISION_SCON_SOCITSCP       2
diff --git a/arch/mips/mti-malta/malta-init.c b/arch/mips/mti-malta/malta-init.c
index 4832af2..475038a 100644
--- a/arch/mips/mti-malta/malta-init.c
+++ b/arch/mips/mti-malta/malta-init.c
@@ -48,7 +48,7 @@ int *_prom_argv, *_prom_envp;
 
 int init_debug = 0;
 
-int mips_revision_corid;
+static int mips_revision_corid;
 int mips_revision_sconid;
 
 /* Bonito64 system controller register base. */
-- 
1.5.6.3


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