LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Dmitri Vorobiev <dmitri.vorobiev@gmail.com>
To: linux-mips@linux-mips.org, ralf@linux-mips.org,
linux-kernel@vger.kernel.org
Subject: [PATCH 3/6] [MIPS] make mdesc and prom_getmdesc() static
Date: Tue, 1 Apr 2008 02:03:22 +0400 [thread overview]
Message-ID: <1207001005-2633-4-git-send-email-dmitri.vorobiev@gmail.com> (raw)
In-Reply-To: <1207001005-2633-1-git-send-email-dmitri.vorobiev@gmail.com>
Neither the mdesc[] array nor the prom_getmdesc() function need to
be global. This patch makes them static.
Successfully build-tested using default configs for Malta, Atlas
and SEAD boards.
Runtime test successfully performed by booting the Malta 4Kc board
up to the shell prompt.
Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@gmail.com>
---
arch/mips/mips-boards/generic/memory.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/mips/mips-boards/generic/memory.c b/arch/mips/mips-boards/generic/memory.c
index dc272c1..5e443bb 100644
--- a/arch/mips/mips-boards/generic/memory.c
+++ b/arch/mips/mips-boards/generic/memory.c
@@ -37,7 +37,7 @@ enum yamon_memtypes {
yamon_prom,
yamon_free,
};
-struct prom_pmemblock mdesc[PROM_MAX_PMEMBLOCKS];
+static struct prom_pmemblock mdesc[PROM_MAX_PMEMBLOCKS];
#ifdef DEBUG
static char *mtypes[3] = {
@@ -50,7 +50,7 @@ static char *mtypes[3] = {
/* determined physical memory size, not overridden by command line args */
unsigned long physical_memsize = 0L;
-struct prom_pmemblock * __init prom_getmdesc(void)
+static struct prom_pmemblock * __init prom_getmdesc(void)
{
char *memsize_str;
unsigned int memsize;
--
1.5.3
next prev parent reply other threads:[~2008-03-31 22:06 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-31 22:03 [PATCH 0/6] [MIPS] make some functions and variables static Dmitri Vorobiev
2008-03-31 22:03 ` [PATCH 1/6] [MIPS] make mips_nmi_setup() static Dmitri Vorobiev
2008-03-31 22:03 ` [PATCH 2/6] [MIPS] make mips_ejtag_setup() static Dmitri Vorobiev
2008-03-31 22:03 ` Dmitri Vorobiev [this message]
2008-03-31 22:03 ` [PATCH 4/6] [MIPS] make plat_perf_setup() static Dmitri Vorobiev
2008-03-31 22:03 ` [PATCH 5/6] [MIPS] make standard_io_resources[] static Dmitri Vorobiev
2008-03-31 22:03 ` [PATCH 6/6] [MIPS] malta_int.c: make 4 variables static Dmitri Vorobiev
2008-03-31 22:41 ` [PATCH 0/6] [MIPS] make some functions and " Ralf Baechle
2008-04-01 8:54 ` Dmitri Vorobiev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1207001005-2633-4-git-send-email-dmitri.vorobiev@gmail.com \
--to=dmitri.vorobiev@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.org \
--subject='Re: [PATCH 3/6] [MIPS] make mdesc and prom_getmdesc() static' \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).