Patch "MIPS: paravirt: Fix undefined reference to smp_bootstrap" has been added to the 4.4-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
MIPS: paravirt: Fix undefined reference to smp_bootstrap
to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
mips-paravirt-fix-undefined-reference-to-smp_bootstrap.patch
and it can be found in the queue-4.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
951c39cd3bc0aedf67fbd8fb4b9380287e6205d1Mon Sep 17 00:00:00 2001
From: Matt Redfearn <[email protected]>
Date: Mon, 5 Sep 2016 15:43:40 +0100
Subject: MIPS: paravirt: Fix undefined reference to smp_bootstrap
From: Matt Redfearn <[email protected]>
commit 951c39cd3bc0aedf67fbd8fb4b9380287e6205d1 upstream.
If the paravirt machine is compiles without CONFIG_SMP, the following linker error occurs
arch/mips/kernel/head.o: In function `kernel_entry':
(.ref.text+0x10): undefined reference to `smp_bootstrap'
due to the kernel entry macro always including SMP startup code. Wrap this code in CONFIG_SMP to fix the error.
Patchwork: https://patchwork.linux-mips.org/patch/14212/
--- arch/mips/include/asm/mach-paravirt/kernel-entry-init.h | 2 ++ 1 file changed, 2 insertions(+)
arch/mips/include/asm/mach-paravirt/kernel-entry-init.h +2 -0
@@ -11,11 +11,13 @@#define CP0_EBASE $15, 1 .macro kernel_entry_setup +#ifdef CONFIG_SMP mfc0 t0,CP0_EBASE andi t0, t0, 0x3ff # CPUNum beqz t0, 1f # CPUs other than zero goto smp_bootstrap j smp_bootstrap +#endif /* CONFIG_SMP */ 1: .endm
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/mips-smp-fix-possibility-of-deadlock-when-bringing-cpus-online.patch queue-4.4/mips-paravirt-fix-undefined-reference-to-smp_bootstrap.patch