Re: [GIT PULL 00/15] perf/urgent fixes

From: David Ahern
Date: Wed Jun 06 2012 - 18:50:33 EST


On 6/6/12 12:50 AM, Ingo Molnar wrote:
Hm, I got this build failure:

bench/mem-memcpy.c: In function âbench_mem_memcpyâ:
bench/mem-memcpy.c:193:2: error: implicit declaration of function âperf_atollâ [-Werror=implicit-function-declaration]
bench/mem-memcpy.c:193:2: error: nested extern declaration of âperf_atollâ [-Werror=nested-externs]

I just created a new F17-x86_64 VM and Arnaldo's perf/urgent branch builds fine (which includes this patch).


Which appears to be a result of:

6b7df4a0237a perf tool: Build fix, remove duplicate declarations

Those declarations were not so unused on this fresh install of
Fedora 17.

32-bit? 64-bit?

This would fix your compile problem, but I have no way of verifying since it builds fine for me.

diff --git a/tools/perf/bench/mem-memcpy.c b/tools/perf/bench/mem-memcpy.c
index 7155722..535b4b8 100644
--- a/tools/perf/bench/mem-memcpy.c
+++ b/tools/perf/bench/mem-memcpy.c
@@ -10,6 +10,7 @@
#include "../util/util.h"
#include "../util/parse-options.h"
#include "../util/header.h"
+#include "../util/string.h"
#include "bench.h"
#include "mem-memcpy-arch.h"
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/