2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-24 13:13:57 +08:00

perf report: Annotate variable initialization

Certain versions of GCC dont see the initialization that is done here:

  builtin-report.c: In function ‘__cmd_report’:
  builtin-report.c:1038: warning: ‘syms’ may be used uninitialized in this function

So annotate it with a NULL initialization.

Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
Ingo Molnar 2009-07-03 13:17:28 +02:00
parent 30d7a77dd5
commit 029e5b1636

View File

@ -1035,7 +1035,7 @@ resolve_callchain(struct thread *thread, struct map *map __used,
struct ip_callchain *chain, struct hist_entry *entry) struct ip_callchain *chain, struct hist_entry *entry)
{ {
u64 context = PERF_CONTEXT_MAX; u64 context = PERF_CONTEXT_MAX;
struct symbol **syms; struct symbol **syms = NULL;
unsigned int i; unsigned int i;
if (callchain) { if (callchain) {