[PATCH] TRACING: Fix a copmile warning

From: stufever
Date: Mon Jul 18 2011 - 05:36:05 EST

From: Wang Shaoyan <wangshaoyan.pt@xxxxxxx>

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@xxxxxxxxxxx>
Cc: Frederic Weisbecker <fweisbec@xxxxxxxxx>
Cc: Ingo Molnar <mingo@xxxxxxxxxx>
Signed-off-by: Wang Shaoyan <wangshaoyan.pt@xxxxxxxxxx>

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;

for (iter = start; iter < end; iter++) {

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/