[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1310981738-13529-1-git-send-email-wangshaoyan.pt@taobao.com>
Date: Mon, 18 Jul 2011 17:35:38 +0800
From: stufever@...il.com
To: linux-kernel@...r.kernel.org
Cc: Wang Shaoyan <wangshaoyan.pt@....com>,
Steven Rostedt <rostedt@...dmis.org>,
Frederic Weisbecker <fweisbec@...il.com>,
Ingo Molnar <mingo@...hat.com>,
Wang Shaoyan <wangshaoyan.pt@...bao.com>
Subject: [PATCH] TRACING: Fix a copmile warning
From: Wang Shaoyan <wangshaoyan.pt@....com>
It's harmless but annyoing.
kernel/trace/trace_printk.c: In function ‘module_trace_bprintk_format_notify’:
kernel/trace/trace_printk.c:52: warning: ‘fmt’ may be used uninitialized in this function
Cc: Steven Rostedt <rostedt@...dmis.org>
Cc: Frederic Weisbecker <fweisbec@...il.com>
Cc: Ingo Molnar <mingo@...hat.com>
Signed-off-by: Wang Shaoyan <wangshaoyan.pt@...bao.com>
---
kernel/trace/trace_printk.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/kernel/trace/trace_printk.c b/kernel/trace/trace_printk.c
index 1f06468..1a5fff8 100644
--- a/kernel/trace/trace_printk.c
+++ b/kernel/trace/trace_printk.c
@@ -49,7 +49,7 @@ static
void hold_module_trace_bprintk_format(const char **start, const char **end)
{
const char **iter;
- char *fmt;
+ char *fmt = NULL;
mutex_lock(&btrace_mutex);
for (iter = start; iter < end; iter++) {
--
1.7.4.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists