Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.

Signed-off-by: Manuel Lauss <manuel.lauss@googlemail.com>
To: Linux-MIPS <linux-mips@linux-mips.org>
Patchwork: https://patchwork.linux-mips.org/patch/1547/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Manuel Lauss and committed by
Ralf Baechle
2b877a3f e080e616

+2 -3
+2 -3
arch/mips/alchemy/common/prom.c
··· 43 43 char **prom_argv; 44 44 char **prom_envp; 45 45 46 - void prom_init_cmdline(void) 46 + void __init prom_init_cmdline(void) 47 47 { 48 48 int i; 49 49 ··· 104 104 } 105 105 } 106 106 107 - int prom_get_ethernet_addr(char *ethernet_addr) 107 + int __init prom_get_ethernet_addr(char *ethernet_addr) 108 108 { 109 109 char *ethaddr_str; 110 110 ··· 123 123 124 124 return 0; 125 125 } 126 - EXPORT_SYMBOL(prom_get_ethernet_addr); 127 126 128 127 void __init prom_free_prom_memory(void) 129 128 {