]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: trace_output.c, fix false positive compiler warning
authorJaswinder Singh Rajput <jaswinder@kernel.org>
Wed, 6 May 2009 10:15:45 +0000 (15:45 +0530)
committerIngo Molnar <mingo@elte.hu>
Wed, 6 May 2009 12:19:16 +0000 (14:19 +0200)
commitc8d72c3ddfc9940590142a204745e083d1850c94
tree4be2982fd1697a9834d15b3ba3c70165ef0eee8a
parentd60fe021308271fc7aaabdac78c219e2aa8e83d0
tracing: trace_output.c, fix false positive compiler warning

This compiler warning:

  CC      kernel/trace/trace_output.o
 kernel/trace/trace_output.c: In function ‘register_ftrace_event’:
 kernel/trace/trace_output.c:544: warning: ‘list’ may be used uninitialized in this function

Is wrong as 'list' is always initialized - but GCC (4.3.2) does not
recognize this relationship properly.

Work around the warning by initializing the variable to NULL.

[ Impact: fix false positive compiler warning ]

Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace_output.c