Skip to contentSkip to conversation

MIPS: Alchemy: resolve prom section mismatches

PATCH In review Manuel Lauss 2 participants 2 messages Aug 19, 2010 – Sep 20, 2010 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: Alchemy: resolve prom section mismatches

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.

---
 arch/mips/alchemy/common/prom.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
arch/mips/alchemy/common/prom.c +2 -3
index c29511b..5340210 100644
@@ -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)
 {
Signature · 1 line
1.7.2