aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/perf_event.c
diff options
context:
space:
mode:
authorAkihiro Nagai <akihiro.nagai.hw@hitachi.com>2011-03-23 16:29:39 +0900
committerIngo Molnar <mingo@elte.hu>2011-03-23 10:38:32 +0100
commitce2d17ca7f85dcade62cd608601a0d52ccdaf0e6 (patch)
tree134a4c4a825ff765eed239df643eed5403a3614d /kernel/perf_event.c
parentMerge branch 'tip/perf/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace into perf/urgent (diff)
downloadlinux-dev-ce2d17ca7f85dcade62cd608601a0d52ccdaf0e6.tar.xz
linux-dev-ce2d17ca7f85dcade62cd608601a0d52ccdaf0e6.zip
perf top: Fix uninitialized 'counter' variable
builtin-top.c has an uninitialized variable. gcc(version 4.5.1) warns about it and it results in build failure: builtin-top.c: In function 'display_thread': builtin-top.c:518:9: error: 'counter' may be used uninitialized This situation can indeed trigger, if the getline() call in prompt_integer() fails. Signed-off-by: Akihiro Nagai <akihiro.nagai.hw@hitachi.com> Cc: Arnaldo Carvalho de Melo <acme@infradead.org> Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> LKML-Reference: <20110323072939.11638.50173.stgit@localhost6.localdomain6> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/perf_event.c')
0 files changed, 0 insertions, 0 deletions