summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-10-29 21:14:27 +0100
committerMichael Ellerman <mpe@ellerman.id.au>2014-10-30 11:22:33 +1100
commit94966b712c6875939fcdd83cb2707a797e131a43 (patch)
treee6d8e005c53bb5626f1bdf3e7db5503694599b00 /arch/powerpc/mm
parentd506aa68c23db708ad45ca8c17f0d7f5d7029a37 (diff)
downloadlinux-94966b712c6875939fcdd83cb2707a797e131a43.tar.bz2
powerpc: Fix section mismatch warning
Add __init to MMU_setup() which uses __initdata boot_command_line. Also MMU_setup() is only called from MMU_init(), which is also __init. Warning appeared since commit 3e47d1474c2b. Fixes: 3e47d1474c2b ("powerpc: Remove powerpc specific cmd_line") Signed-off-by: Fabian Frederick <fabf@skynet.be> [mpe: Update changelog] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/mm')
-rw-r--r--arch/powerpc/mm/init_32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/mm/init_32.c b/arch/powerpc/mm/init_32.c
index cad68ff8eca5..415a51b028b9 100644
--- a/arch/powerpc/mm/init_32.c
+++ b/arch/powerpc/mm/init_32.c
@@ -103,7 +103,7 @@ unsigned long __max_low_memory = MAX_LOW_MEM;
/*
* Check for command-line options that affect what MMU_init will do.
*/
-void MMU_setup(void)
+void __init MMU_setup(void)
{
/* Check for nobats option (used in mapin_ram). */
if (strstr(boot_command_line, "nobats")) {