diff options
author | Thomas Renninger <trenn@suse.de> | 2011-01-21 15:30:09 +0100 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-01-22 19:53:00 -0200 |
commit | 00e99a49f6f3a6b5a84ba8bf8f632c9b974bea7a (patch) | |
tree | a2722493df97b28d7dc3d582b78a7c60b92c9ee8 /tools/perf | |
parent | 065bef5af620dcedeb6dc26fdc0b1739a3c9adef (diff) | |
download | linux-stable-00e99a49f6f3a6b5a84ba8bf8f632c9b974bea7a.tar.gz linux-stable-00e99a49f6f3a6b5a84ba8bf8f632c9b974bea7a.tar.bz2 linux-stable-00e99a49f6f3a6b5a84ba8bf8f632c9b974bea7a.zip |
perf tools: Fix time function double declaration with glibc
It's enough to include the local "debug.h" file to trigger it.
man time reveals this is already declared in glibc:
time - get time in seconds
-> rename the variable.
Cc: Ingo Molnar <mingo@elte.hu>
Cc: arjan@infradead.org
LPU-Reference: <1295620209-13859-2-git-send-email-trenn@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf')
-rw-r--r-- | tools/perf/util/svghelper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/svghelper.c b/tools/perf/util/svghelper.c index 805220afc083..fb737fe9be91 100644 --- a/tools/perf/util/svghelper.c +++ b/tools/perf/util/svghelper.c @@ -44,11 +44,11 @@ static double cpu2y(int cpu) return cpu2slot(cpu) * SLOT_MULT; } -static double time2pixels(u64 time) +static double time2pixels(u64 __time) { double X; - X = 1.0 * svg_page_width * (time - first_time) / (last_time - first_time); + X = 1.0 * svg_page_width * (__time - first_time) / (last_time - first_time); return X; } |