summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@c-s.fr>2019-05-10 06:31:28 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-09-16 08:21:43 +0200
commit7f8b23600779b90c6b16c2558a9d751fd9b400df (patch)
tree1447d4d2444aefaf74e9f068222998626ad7609f /arch
parent85a24825b2e63d5088f6c5088025bd2cf2504f45 (diff)
downloadlinux-stable-7f8b23600779b90c6b16c2558a9d751fd9b400df.tar.gz
linux-stable-7f8b23600779b90c6b16c2558a9d751fd9b400df.tar.bz2
linux-stable-7f8b23600779b90c6b16c2558a9d751fd9b400df.zip
powerpc/64: mark start_here_multiplatform as __ref
[ Upstream commit 9c4e4c90ec24652921e31e9551fcaedc26eec86d ] Otherwise, the following warning is encountered: WARNING: vmlinux.o(.text+0x3dc6): Section mismatch in reference from the variable start_here_multiplatform to the function .init.text:.early_setup() The function start_here_multiplatform() references the function __init .early_setup(). This is often because start_here_multiplatform lacks a __init annotation or the annotation of .early_setup is wrong. Fixes: 56c46bba9bbf ("powerpc/64: Fix booting large kernels with STRICT_KERNEL_RWX") Cc: Russell Currey <ruscur@russell.cc> Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/kernel/head_64.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/head_64.S b/arch/powerpc/kernel/head_64.S
index 9168a247e24f..3fb564f3e887 100644
--- a/arch/powerpc/kernel/head_64.S
+++ b/arch/powerpc/kernel/head_64.S
@@ -906,6 +906,7 @@ p_toc: .8byte __toc_start + 0x8000 - 0b
/*
* This is where the main kernel code starts.
*/
+__REF
start_here_multiplatform:
/* set up the TOC */
bl relative_toc
@@ -981,6 +982,7 @@ start_here_multiplatform:
RFI
b . /* prevent speculative execution */
+ .previous
/* This is where all platforms converge execution */
start_here_common: