summaryrefslogtreecommitdiffstats
path: root/arch/sparc/kernel/head.S
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2008-10-22 06:56:42 +0200
committerDavid S. Miller <davem@davemloft.net>2008-10-23 06:53:47 +0200
commit8dd9453737822469837d48d5da3785ce70fb2118 (patch)
treee65a039e3c0033ff5dfcd54a0a0ff7ed36d5a758 /arch/sparc/kernel/head.S
parentsparc: correct section of apc_no_idle (diff)
downloadlinux-8dd9453737822469837d48d5da3785ce70fb2118.tar.xz
linux-8dd9453737822469837d48d5da3785ce70fb2118.zip
sparc: correct section of current_pc()
Latest mainline gives this section mismatch on sparc: The function current_pc() references the variable __init no_sun4u_here. This is often because current_pc lacks a __init annotation or the annotation of no_sun4u_here is wrong. Since current_pc() is used only in early time, it is correct to put it in .init section. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--arch/sparc/kernel/head.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sparc/kernel/head.S b/arch/sparc/kernel/head.S
index 2d325fd84579..2fe2c117e772 100644
--- a/arch/sparc/kernel/head.S
+++ b/arch/sparc/kernel/head.S
@@ -465,6 +465,7 @@ gokernel:
mov %o7, %g4 ! Save %o7
/* Jump to it, and pray... */
+ __INIT
current_pc:
call 1f
nop