[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-mips-cvs
Subject:    MIPS: paravirt: Fix undefined reference to smp_bootstrap
From:       linux-mips () linux-mips ! org
Date:       2016-09-20 13:49:12
Message-ID: S23993111AbcITNtOXnW9Y/20160920134914Z+1661 () eddie ! linux-mips ! org
[Download RAW message or body]

Author: Matt Redfearn <matt.redfearn@imgtec.com> Mon Sep 5 15:43:40 2016 +0100
Comitter: Ralf Baechle <ralf@linux-mips.org> Tue Sep 13 16:39:01 2016 +0200
Commit: 42af417607a03bdb847d8a0ad1878f82d5b92410
Gitweb: https://git.linux-mips.org/g/ralf/linux/42af417607a0
Branch: master

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.

Signed-off-by: Matt Redfearn <matt.redfearn@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Cc: stable@vger.kernel.org # 3.16+
Patchwork: https://patchwork.linux-mips.org/patch/14212/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

---

 .../include/asm/mach-paravirt/kernel-entry-init.h  |    2 ++
 1 file changed, 2 insertions(+)

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic