[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-a31b7cc083b1d3d15bd475729fc4471685ebc5f6@git.kernel.org>
Date: Fri, 13 Apr 2012 11:19:38 -0700
From: tip-bot for Namhyung Kim <namhyung@...il.com>
To: linux-tip-commits@...r.kernel.org
Cc: acme@...hat.com, eranian@...gle.com, mingo@...nel.org,
peterz@...radead.org, efault@....de, namhyung.kim@....com,
fweisbec@...il.com, dsahern@...il.com, tglx@...utronix.de,
hpa@...or.com, paulus@...ba.org, linux-kernel@...r.kernel.org,
andi@...stfloor.org, ashay.rane@...c.utexas.edu,
namhyung@...il.com, masami.hiramatsu.pt@...achi.com
Subject: [tip:perf/core] perf annotate: Fix a build error
Commit-ID: a31b7cc083b1d3d15bd475729fc4471685ebc5f6
Gitweb: http://git.kernel.org/tip/a31b7cc083b1d3d15bd475729fc4471685ebc5f6
Author: Namhyung Kim <namhyung@...il.com>
AuthorDate: Wed, 11 Apr 2012 17:04:59 -0300
Committer: Arnaldo Carvalho de Melo <acme@...hat.com>
CommitDate: Wed, 11 Apr 2012 17:07:18 -0300
perf annotate: Fix a build error
CC util/annotate.o
util/annotate.c: In function symbol__annotate:
util/annotate.c:87:16: error: parsed_line may be used uninitialized in this function [-Werror=maybe-uninitialized]
util/annotate.c:211:22: note: parsed_line was declared here
cc1: all warnings being treated as errors
make: *** [util/annotate.o] Error 1
make: *** Waiting for unfinished jobs....
Signed-off-by: Namhyung Kim <namhyung.kim@....com>
Cc: Andi Kleen <andi@...stfloor.org>
Cc: Ashay Rane <ashay.rane@...c.utexas.edu>
Cc: David Ahern <dsahern@...il.com>
Cc: Frederic Weisbecker <fweisbec@...il.com>
Cc: Masami Hiramatsu <masami.hiramatsu.pt@...achi.com>
Cc: Mike Galbraith <efault@....de>
Cc: Paul Mackerras <paulus@...ba.org>
Cc: Peter Zijlstra <peterz@...radead.org>
Cc: Stephane Eranian <eranian@...gle.com>
Link: http://lkml.kernel.org/r/87ty0tlv4i.fsf@dasan.aot.lge.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@...hat.com>
---
tools/perf/util/annotate.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c
index 9fc4126..1e7fd52 100644
--- a/tools/perf/util/annotate.c
+++ b/tools/perf/util/annotate.c
@@ -226,6 +226,7 @@ static int symbol__parse_objdump_line(struct symbol *sym, struct map *map,
*c = 0;
line_ip = -1;
+ parsed_line = line;
/*
* Strip leading spaces:
@@ -255,8 +256,7 @@ static int symbol__parse_objdump_line(struct symbol *sym, struct map *map,
offset = -1;
else
parsed_line = tmp2 + 1;
- } else
- parsed_line = line;
+ }
objdump_line = objdump_line__new(offset, parsed_line, privsize);
free(line);
--
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