| To: | Linux-MIPS <linux-mips@linux-mips.org> |
|---|---|
| Subject: | [PATCH] MIPS: Alchemy: resolve prom section mismatches |
| From: | Manuel Lauss <manuel.lauss@googlemail.com> |
| Date: | Thu, 19 Aug 2010 13:37:13 +0200 |
| Cc: | Manuel Lauss <manuel.lauss@googlemail.com> |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=HAscM9toEXSPG89OQZJl79Ic1/P2tWJKYEhoPjt2ExI=; b=d1WaUVmmgc/gtozp8P20R84zGzKEmAyj+q31VxNs6HiZZW60nxWJL+VoemyAK29nED VEDybbg4/kfPR0gIIpUbUMwiqRIdwBpRGuy+PBcf0/lZmUcRCSvNv/0Ep7WopZPIhRQI +6m90xiCuoCXb/R31ZZe3uEWBXzrNx2M2JTvI= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=orRkRAMl+iuDE0v/+ybgADLUvwh6JZp75IrnDualtUaBlj4sZ1GxpQw4WosJFLA/2J w5saE9HZq1EKZZTIAEgA/JNqhbvUeVoJT9EzkT4tvHw3b+Nf4Ey2klb7GCeCmfcx+XQm QAyGRXv5dIQ9vCJOgvEOre5fILdd2mSXkjkSo= |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Sender: | linux-mips-bounce@linux-mips.org |
The function prom_init_cmdline() references
the variable __initdata arcs_cmdline.
The function prom_get_ethernet_addr() references
the variable __initdata arcs_cmdline.
Annotate prom_init_cmdline() as __init, unexport and annotate
prom_get_ethernet_addr() since it's no longer called from
within driver code.
Signed-off-by: Manuel Lauss <manuel.lauss@googlemail.com>
---
arch/mips/alchemy/common/prom.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/arch/mips/alchemy/common/prom.c b/arch/mips/alchemy/common/prom.c
index c29511b..5340210 100644
--- a/arch/mips/alchemy/common/prom.c
+++ b/arch/mips/alchemy/common/prom.c
@@ -43,7 +43,7 @@ int prom_argc;
char **prom_argv;
char **prom_envp;
-void prom_init_cmdline(void)
+void __init prom_init_cmdline(void)
{
int i;
@@ -104,7 +104,7 @@ static inline void str2eaddr(unsigned char *ea, unsigned
char *str)
}
}
-int prom_get_ethernet_addr(char *ethernet_addr)
+int __init prom_get_ethernet_addr(char *ethernet_addr)
{
char *ethaddr_str;
@@ -123,7 +123,6 @@ int prom_get_ethernet_addr(char *ethernet_addr)
return 0;
}
-EXPORT_SYMBOL(prom_get_ethernet_addr);
void __init prom_free_prom_memory(void)
{
--
1.7.2
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: kmalloc issue on MIPS target, Sergei Shtylyov |
|---|---|
| Next by Date: | Re: [PATCH] MIPS: TX49xx: rename ARCH_KMALLOC_MINALIGN to ARCH_DMA_MINALIGN, Atsushi Nemoto |
| Previous by Thread: | Does Mips Linux rely on Yamon h/w initialization (other than DDR memory which is strictly necessary)?, Ardelean, Andrei |
| Next by Thread: | sparsemem support on MIPS, naveen yadav |
| Indexes: | [Date] [Thread] [Top] [All Lists] |