diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-10-24 06:47:10 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-24 06:52:44 -0400 |
commit | f17845e5d97ead8fbdadfd40039e058ec7cf4a42 (patch) | |
tree | 14c053143dad362fce72cc77f2beb41ab6c43dec /kernel/trace/ftrace.c | |
parent | 66b0de3569b00f61978782b9f97aa4803dbec0fb (diff) |
ftrace: warning in kernel/trace/ftrace.c
this warning:
kernel/trace/ftrace.c:189: warning: ‘frozen_record_count’ defined but not used
triggers because frozen_record_count is only used in the KCONFIG_MARKERS
case. Move the variable it there.
Alas, this frozen-record facility seems to have little use. The
frozen_record_count variable is not used by anything, nor the flags.
So this section might need a bit of dead-code-removal care as well.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/ftrace.c')
-rw-r--r-- | kernel/trace/ftrace.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 27212321eb0d..7618c528756b 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c | |||
@@ -186,7 +186,6 @@ enum { | |||
186 | 186 | ||
187 | static int ftrace_filtered; | 187 | static int ftrace_filtered; |
188 | static int tracing_on; | 188 | static int tracing_on; |
189 | static int frozen_record_count; | ||
190 | 189 | ||
191 | static LIST_HEAD(ftrace_new_addrs); | 190 | static LIST_HEAD(ftrace_new_addrs); |
192 | 191 | ||
@@ -211,6 +210,9 @@ static struct dyn_ftrace *ftrace_free_records; | |||
211 | 210 | ||
212 | 211 | ||
213 | #ifdef CONFIG_KPROBES | 212 | #ifdef CONFIG_KPROBES |
213 | |||
214 | static int frozen_record_count; | ||
215 | |||
214 | static inline void freeze_record(struct dyn_ftrace *rec) | 216 | static inline void freeze_record(struct dyn_ftrace *rec) |
215 | { | 217 | { |
216 | if (!(rec->flags & FTRACE_FL_FROZEN)) { | 218 | if (!(rec->flags & FTRACE_FL_FROZEN)) { |
@@ -1443,3 +1445,4 @@ ftrace_enable_sysctl(struct ctl_table *table, int write, | |||
1443 | mutex_unlock(&ftrace_sysctl_lock); | 1445 | mutex_unlock(&ftrace_sysctl_lock); |
1444 | return ret; | 1446 | return ret; |
1445 | } | 1447 | } |
1448 | |||