Skip to contentSkip to conversation

sparc/time: Add missing __init to init_tick_ops()

PATCH New Steven Rostedt 1 participant 1 message Jun 6, 2018 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sparc/time: Add missing __init to init_tick_ops()

From: Steven Rostedt (VMware) <[email protected]>

Code that was added to force gcc not to inline any function that isn't explicitly declared as inline uncovered that init_tick_ops() isn't marked as "__init". It is only called by __init functions and more importantly it too calls an __init function which would require it to be __init as well.

---

arch/sparc/kernel/time_64.c +1 -1
index 2ef8cfa9677e..f0eba72aa1ad 100644
@@ -814,7 +814,7 @@ static void __init get_tick_patch(void)
 	}
 }
 
-static void init_tick_ops(struct sparc64_tick_ops *ops)
+static void __init init_tick_ops(struct sparc64_tick_ops *ops)
 {
 	unsigned long freq, quotient, tick;