Commit 94966b71 authored by Fabian Frederick's avatar Fabian Frederick Committed by Michael Ellerman

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 3e47d147.

Fixes: 3e47d147 ("powerpc: Remove powerpc specific cmd_line")
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
[mpe: Update changelog]
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent d506aa68
...@@ -103,7 +103,7 @@ unsigned long __max_low_memory = MAX_LOW_MEM; ...@@ -103,7 +103,7 @@ unsigned long __max_low_memory = MAX_LOW_MEM;
/* /*
* Check for command-line options that affect what MMU_init will do. * 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). */ /* Check for nobats option (used in mapin_ram). */
if (strstr(boot_command_line, "nobats")) { if (strstr(boot_command_line, "nobats")) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment