summaryrefslogtreecommitdiffstats
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
parentd506aa68c23db708ad45ca8c17f0d7f5d7029a37 (diff)
downloadop-kernel-dev-94966b712c6875939fcdd83cb2707a797e131a43.zip
op-kernel-dev-94966b712c6875939fcdd83cb2707a797e131a43.tar.gz
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>
-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 cad68ff..415a51b 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")) {
OpenPOWER on IntegriCloud