diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-10-29 23:14:27 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2014-10-30 03:22:33 +0300 |
commit | 94966b712c6875939fcdd83cb2707a797e131a43 (patch) | |
tree | e6d8e005c53bb5626f1bdf3e7db5503694599b00 /arch/powerpc/mm/init_32.c | |
parent | d506aa68c23db708ad45ca8c17f0d7f5d7029a37 (diff) | |
download | linux-94966b712c6875939fcdd83cb2707a797e131a43.tar.xz |
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/init_32.c')
-rw-r--r-- | arch/powerpc/mm/init_32.c | 2 |
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")) { |