lkml.org 
[lkml]   [2009]   [Nov]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] tracing: prevent build warning: 'ftrace_graph_buf' defined but not used
Frederic Weisbecker wrote:
> On Thu, Nov 05, 2009 at 11:16:17AM +0800, Lai Jiangshan wrote:
>> prevent build warning when !CONFIG_FUNCTION_GRAPH_TRACER
>>
>> Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
>
>
> Acked-by: Frederic Weisbecker <fweisbec@gmail.com>

Hi, Ingo,

Could you apply this cleanup patch for -tip?

Lai

>
>
>
>> ---
>> diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
>> index 7cb6f19..892e3ea 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)
>> #define FTRACE_FILTER_SIZE COMMAND_LINE_SIZE
>> static char ftrace_notrace_buf[FTRACE_FILTER_SIZE] __initdata;
>> static char ftrace_filter_buf[FTRACE_FILTER_SIZE] __initdata;
>> -static char ftrace_graph_buf[FTRACE_FILTER_SIZE] __initdata;
>>
>> static int __init set_ftrace_notrace(char *str)
>> {
>> @@ -2291,6 +2290,7 @@ static int __init set_ftrace_filter(char *str)
>> __setup("ftrace_filter=", set_ftrace_filter);
>>
>> #ifdef CONFIG_FUNCTION_GRAPH_TRACER
>> +static char ftrace_graph_buf[FTRACE_FILTER_SIZE] __initdata;
>> static int __init set_graph_function(char *str)
>> {
>> strlcpy(ftrace_graph_buf, str, FTRACE_FILTER_SIZE);
>>
>
>
>



\
 
 \ /
  Last update: 2009-11-17 08:49    [W:0.349 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site