mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
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 <[email protected]> Cc: [email protected] LPU-Reference: <[email protected]> Signed-off-by: Thomas Renninger <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
This commit is contained in:
1 parent
065bef5af6
commit
00e99a49f6
1 file changed
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user