sparc/time: Add missing __init to init_tick_ops()

Message ID 20180606101110.1a309846@vmware.local.home
State Accepted
Delegated to: David Miller
Headers show
  • sparc/time: Add missing __init to init_tick_ops()
Related show

Commit Message

Steven Rostedt June 6, 2018, 2:11 p.m.
From: Steven Rostedt (VMware) <>

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.


Reported-by: kbuild test robot <>
Signed-off-by: Steven Rostedt (VMware) <>
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to
More majordomo info at


diff --git a/arch/sparc/kernel/time_64.c b/arch/sparc/kernel/time_64.c
index 2ef8cfa9677e..f0eba72aa1ad 100644
--- a/arch/sparc/kernel/time_64.c
+++ b/arch/sparc/kernel/time_64.c
@@ -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;