From 8dd9453737822469837d48d5da3785ce70fb2118 Mon Sep 17 00:00:00 2001 From: Frederic Weisbecker Date: Tue, 21 Oct 2008 21:56:42 -0700 Subject: [PATCH] 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 --- arch/sparc/kernel/head.S | 1 + 1 file changed, 1 insertion(+) 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 -- 2.30.2