linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Renninger <trenn@suse.de>
To: mingo@elte.hu
Cc: Thomas Renninger <trenn@suse.de>,
	arjan@infradead.org, linux-perf-users@vger.kernel.org
Subject: [PATCH] perf: Fix time function double declaration with glibc
Date: Fri, 21 Jan 2011 15:30:09 +0100	[thread overview]
Message-ID: <1295620209-13859-2-git-send-email-trenn@suse.de> (raw)
In-Reply-To: <1295620209-13859-1-git-send-email-trenn@suse.de>

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
#include <time.h>
-> rename the variable.

Signed-off-by: Thomas Renninger <trenn@suse.de>
CC: arjan@infradead.org
CC: mingo@elte.hu
CC: linux-perf-users@vger.kernel.org
---
 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 8ee5d11..e40a00d 100644
--- a/tools/perf/util/svghelper.c
+++ b/tools/perf/util/svghelper.c
@@ -43,11 +43,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;
 }
 
-- 
1.7.3.4

  reply	other threads:[~2011-01-21 14:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-21 14:30 [PATCH] perf: Fix timechart idle box drawings Thomas Renninger
2011-01-21 14:30 ` Thomas Renninger [this message]
2011-01-23  0:37 ` Arnaldo Carvalho de Melo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1295620209-13859-2-git-send-email-trenn@suse.de \
    --to=trenn@suse.de \
    --cc=arjan@infradead.org \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=mingo@elte.hu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).