]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
sparc: correct section of current_pc()
authorFrederic Weisbecker <fweisbec@gmail.com>
Wed, 22 Oct 2008 04:56:42 +0000 (21:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Oct 2008 04:53:47 +0000 (21:53 -0700)
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>
arch/sparc/kernel/head.S

index 2d325fd845795e32361f658736784262f56bf5c0..2fe2c117e772fac352230dd2827d5a45d8915fd4 100644 (file)
@@ -465,6 +465,7 @@ gokernel:
                mov     %o7, %g4                ! Save %o7
 
                /* Jump to it, and pray... */
+               __INIT
 current_pc:
                call    1f
                 nop