|
@@ -768,7 +768,7 @@ static struct tracer_stat function_stats __initdata = {
|
|
|
.stat_show = function_stat_show
|
|
|
};
|
|
|
|
|
|
-static void ftrace_profile_debugfs(struct dentry *d_tracer)
|
|
|
+static __init void ftrace_profile_debugfs(struct dentry *d_tracer)
|
|
|
{
|
|
|
struct ftrace_profile_stat *stat;
|
|
|
struct dentry *entry;
|
|
@@ -786,7 +786,6 @@ static void ftrace_profile_debugfs(struct dentry *d_tracer)
|
|
|
* The files created are permanent, if something happens
|
|
|
* we still do not free memory.
|
|
|
*/
|
|
|
- kfree(stat);
|
|
|
WARN(1,
|
|
|
"Could not allocate stat file for cpu %d\n",
|
|
|
cpu);
|
|
@@ -813,7 +812,7 @@ static void ftrace_profile_debugfs(struct dentry *d_tracer)
|
|
|
}
|
|
|
|
|
|
#else /* CONFIG_FUNCTION_PROFILER */
|
|
|
-static void ftrace_profile_debugfs(struct dentry *d_tracer)
|
|
|
+static __init void ftrace_profile_debugfs(struct dentry *d_tracer)
|
|
|
{
|
|
|
}
|
|
|
#endif /* CONFIG_FUNCTION_PROFILER */
|