Explorar o código

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>
Frederic Weisbecker %!s(int64=16) %!d(string=hai) anos
pai
achega
8dd9453737
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      arch/sparc/kernel/head.S

+ 1 - 0
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