diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2008-10-22 04:56:42 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-23 04:53:47 (GMT) |
commit | 8dd9453737822469837d48d5da3785ce70fb2118 (patch) | |
tree | e65a039e3c0033ff5dfcd54a0a0ff7ed36d5a758 /arch/sparc/kernel | |
parent | a1731e5b9aa236dfa51a82799dc91c56611ddaab (diff) | |
download | linux-fsl-qoriq-8dd9453737822469837d48d5da3785ce70fb2118.tar.xz |
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 'arch/sparc/kernel')
-rw-r--r-- | arch/sparc/kernel/head.S | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sparc/kernel/head.S b/arch/sparc/kernel/head.S index 2d325fd..2fe2c11 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 |