From: Frederic Weisbecker Date: Wed, 22 Oct 2008 04:56:42 +0000 (-0700) Subject: sparc: correct section of current_pc() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8dd9453737822469837d48d5da3785ce70fb2118;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 Signed-off-by: David S. Miller --- diff --git a/arch/sparc/kernel/head.S b/arch/sparc/kernel/head.S index 2d325fd8457..2fe2c117e77 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