diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2008-10-21 21:56:42 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-10-22 21:53:47 -0700 |
commit | 8dd9453737822469837d48d5da3785ce70fb2118 (patch) | |
tree | e65a039e3c0033ff5dfcd54a0a0ff7ed36d5a758 /arch | |
parent | a1731e5b9aa236dfa51a82799dc91c56611ddaab (diff) |
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')
-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 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 |