aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLai Jiangshan <laijs@cn.fujitsu.com>2009-11-04 22:16:17 -0500
committerSteven Rostedt <rostedt@goodmis.org>2009-11-17 11:05:49 -0500
commitf6060f46819f313d34a8c8151390cda509c23389 (patch)
tree96ec1c80695498d73172b3c2ef7df585b9d28e4f
parent5a50e33cc916f6a81cb96f0f24f6a88c9ab78b79 (diff)
tracing: Prevent build warning: 'ftrace_graph_buf' defined but not used
Prevent build warning when CONFIG_FUNCTION_GRAPH_TRACER is not set. Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com> LKML-Reference: <4AF24381.5060307@cn.fujitsu.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r--kernel/trace/ftrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index 1ed514fe3a30..7f9b51e8184b 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -2274,7 +2274,6 @@ void ftrace_set_notrace(unsigned char *buf, int len, int reset)
2274#define FTRACE_FILTER_SIZE COMMAND_LINE_SIZE 2274#define FTRACE_FILTER_SIZE COMMAND_LINE_SIZE
2275static char ftrace_notrace_buf[FTRACE_FILTER_SIZE] __initdata; 2275static char ftrace_notrace_buf[FTRACE_FILTER_SIZE] __initdata;
2276static char ftrace_filter_buf[FTRACE_FILTER_SIZE] __initdata; 2276static char ftrace_filter_buf[FTRACE_FILTER_SIZE] __initdata;
2277static char ftrace_graph_buf[FTRACE_FILTER_SIZE] __initdata;
2278 2277
2279static int __init set_ftrace_notrace(char *str) 2278static int __init set_ftrace_notrace(char *str)
2280{ 2279{
@@ -2291,6 +2290,7 @@ static int __init set_ftrace_filter(char *str)
2291__setup("ftrace_filter=", set_ftrace_filter); 2290__setup("ftrace_filter=", set_ftrace_filter);
2292 2291
2293#ifdef CONFIG_FUNCTION_GRAPH_TRACER 2292#ifdef CONFIG_FUNCTION_GRAPH_TRACER
2293static char ftrace_graph_buf[FTRACE_FILTER_SIZE] __initdata;
2294static int __init set_graph_function(char *str) 2294static int __init set_graph_function(char *str)
2295{ 2295{
2296 strlcpy(ftrace_graph_buf, str, FTRACE_FILTER_SIZE); 2296 strlcpy(ftrace_graph_buf, str, FTRACE_FILTER_SIZE);