diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2021-03-14 10:33:33 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2021-03-29 04:22:14 +0200 |
commit | 55c2f5574a013d2dbf1012a2ad93cb8d947279a7 (patch) | |
tree | 902d04774f815b9c5d5592cb473620042db48299 /arch/powerpc/kernel/setup-common.c | |
parent | powerpc/64s: Fold update_current_thread_[i]amr() into their only callers (diff) | |
download | linux-55c2f5574a013d2dbf1012a2ad93cb8d947279a7.tar.xz linux-55c2f5574a013d2dbf1012a2ad93cb8d947279a7.zip |
powerpc: Fix section mismatch warning in smp_setup_pacas()
Section mismatch in reference from the function .smp_setup_pacas() to
the function .init.text:.allocate_paca()
The only caller of smp_setup_pacas() is setup_arch() which is __init,
so mark smp_setup_pacas() __init.
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210314093333.132657-1-mpe@ellerman.id.au
Diffstat (limited to '')
-rw-r--r-- | arch/powerpc/kernel/setup-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/setup-common.c b/arch/powerpc/kernel/setup-common.c index 7221f11acf04..74a98fff2c2f 100644 --- a/arch/powerpc/kernel/setup-common.c +++ b/arch/powerpc/kernel/setup-common.c @@ -828,7 +828,7 @@ static __init void print_system_info(void) } #ifdef CONFIG_SMP -static void smp_setup_pacas(void) +static void __init smp_setup_pacas(void) { int cpu; |