|
@@ -3307,7 +3307,11 @@ void unregister_ftrace_function_probe_all(char *glob)
|
|
|
static LIST_HEAD(ftrace_commands);
|
|
|
static DEFINE_MUTEX(ftrace_cmd_mutex);
|
|
|
|
|
|
-int register_ftrace_command(struct ftrace_func_command *cmd)
|
|
|
+/*
|
|
|
+ * Currently we only register ftrace commands from __init, so mark this
|
|
|
+ * __init too.
|
|
|
+ */
|
|
|
+__init int register_ftrace_command(struct ftrace_func_command *cmd)
|
|
|
{
|
|
|
struct ftrace_func_command *p;
|
|
|
int ret = 0;
|
|
@@ -3326,7 +3330,11 @@ int register_ftrace_command(struct ftrace_func_command *cmd)
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
-int unregister_ftrace_command(struct ftrace_func_command *cmd)
|
|
|
+/*
|
|
|
+ * Currently we only unregister ftrace commands from __init, so mark
|
|
|
+ * this __init too.
|
|
|
+ */
|
|
|
+__init int unregister_ftrace_command(struct ftrace_func_command *cmd)
|
|
|
{
|
|
|
struct ftrace_func_command *p, *n;
|
|
|
int ret = -ENODEV;
|