diff options
author | Frederic Weisbecker <[email protected]> | 2009-08-08 04:26:35 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2009-08-09 12:54:44 +0200 |
commit | 10b8e3066066708f304e0fc5cfe658e05abf943d (patch) | |
tree | 1ccebafe8ae44f6f032f993c63eb58a6c2aadea4 /scripts/basic/docproc.c | |
parent | 25446036cbfc2c89faacdb4fb4603943d2197dc6 (diff) |
perf_counter: Work around gcc warning by initializing tracepoint record unconditionally
Despite that the tracepoint record is always present when the
PERF_SAMPLE_TP_RECORD flag is set, gcc raises a warning,
thinking it might not be initialized:
kernel/perf_counter.c: In function ‘perf_counter_output’:
kernel/perf_counter.c:2650: warning: ‘tp’ may be used uninitialized in this function
Then, initialize it to NULL and always check if it's not NULL
before dereference it.
Reported-by: Ingo Molnar <[email protected]>
Signed-off-by: Frederic Weisbecker <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Paul Mackerras <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'scripts/basic/docproc.c')
0 files changed, 0 insertions, 0 deletions