Skip to content

Commit

Permalink
sparc: correct section of current_pc()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Frederic Weisbecker authored and David S. Miller committed Oct 23, 2008
1 parent a1731e5 commit 8dd9453
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/sparc/kernel/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,7 @@ gokernel:
mov %o7, %g4 ! Save %o7

/* Jump to it, and pray... */
__INIT
current_pc:
call 1f
nop
Expand Down

0 comments on commit 8dd9453

Please sign in to comment.