aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Noonan <steven@uplinklabs.net>2008-09-20 04:00:37 -0400
committerIngo Molnar <mingo@elte.hu>2008-10-14 04:37:58 -0400
commit71c67d58b5660f8e42c7d4c3e77cbc03fac5ed31 (patch)
treec098b6b717c3bf1cb80bef83bde7c9a0ccbacaad
parentfb1b6d8b5154c692172a424e45fbd0573295cb93 (diff)
ftrace: mcount_addr defined but not used
When CONFIG_DYNAMIC_FTRACE isn't used, neither is mcount_addr. This patch eliminates that warning. Signed-off-by: Steven Noonan <steven@uplinklabs.net> Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--kernel/trace/ftrace.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index c9e09d86e1d8..7694f3e59797 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -37,14 +37,6 @@ int ftrace_enabled __read_mostly;
37static int last_ftrace_enabled; 37static int last_ftrace_enabled;
38 38
39/* 39/*
40 * Since MCOUNT_ADDR may point to mcount itself, we do not want
41 * to get it confused by reading a reference in the code as we
42 * are parsing on objcopy output of text. Use a variable for
43 * it instead.
44 */
45static unsigned long mcount_addr = MCOUNT_ADDR;
46
47/*
48 * ftrace_disabled is set when an anomaly is discovered. 40 * ftrace_disabled is set when an anomaly is discovered.
49 * ftrace_disabled is much stronger than ftrace_enabled. 41 * ftrace_disabled is much stronger than ftrace_enabled.
50 */ 42 */
@@ -178,6 +170,14 @@ static DEFINE_SPINLOCK(ftrace_hash_lock);
178#define ftrace_hash_unlock(flags) do { } while(0) 170#define ftrace_hash_unlock(flags) do { } while(0)
179#endif 171#endif
180 172
173/*
174 * Since MCOUNT_ADDR may point to mcount itself, we do not want
175 * to get it confused by reading a reference in the code as we
176 * are parsing on objcopy output of text. Use a variable for
177 * it instead.
178 */
179static unsigned long mcount_addr = MCOUNT_ADDR;
180
181static struct task_struct *ftraced_task; 181static struct task_struct *ftraced_task;
182 182
183enum { 183enum {