tracing: Make register/unregister_ftrace_command __init
register/unregister_ftrace_command() are only ever called from __init functions, so can themselves be made __init. Also make register_snapshot_cmd() __init for the same reason. Link: http://lkml.kernel.org/r/d4042c8cadb7ae6f843ac9a89a24e1c6a3099727.1382620672.git.tom.zanussi@linux.intel.com Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
This commit is contained in:

committed by
Steven Rostedt

parent
f306cc82a9
commit
38de93abec
@@ -5477,12 +5477,12 @@ static struct ftrace_func_command ftrace_snapshot_cmd = {
|
||||
.func = ftrace_trace_snapshot_callback,
|
||||
};
|
||||
|
||||
static int register_snapshot_cmd(void)
|
||||
static __init int register_snapshot_cmd(void)
|
||||
{
|
||||
return register_ftrace_command(&ftrace_snapshot_cmd);
|
||||
}
|
||||
#else
|
||||
static inline int register_snapshot_cmd(void) { return 0; }
|
||||
static inline __init int register_snapshot_cmd(void) { return 0; }
|
||||
#endif /* defined(CONFIG_TRACER_SNAPSHOT) && defined(CONFIG_DYNAMIC_FTRACE) */
|
||||
|
||||
struct dentry *tracing_init_dentry_tr(struct trace_array *tr)
|
||||
|
Reference in New Issue
Block a user