[PATCH] perf tools: fix a wrong header file path in util/unwind.c

From: Runzhen Wang
Date: Mon May 27 2013 - 03:58:48 EST


For the latest perf core tree:
(git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git),
in util/unwind.c line 29 includes "perf_regs.h". That means compiler
will search for this header file in current directory, so, gcc will
puts the following error messages:

util/unwind.c: In function âaccess_memâ:
util/unwind.c:400:50: error: âPERF_REG_SPâ undeclared (first use in this
function)
util/unwind.c:400:50: note: each undeclared identifier is reported only
once for each function it appears in
util/unwind.c: In function âunwind__get_entriesâ:
util/unwind.c:562:41: error: âPERF_REG_IPâ undeclared (first use in this
function)

Changing #include "perf_regs.h" to #include <perf_regs.h> will fix the
error.

Signed-off-by: Runzhen Wang <runzhen@xxxxxxxxxxxxxxxxxx>
---
tools/perf/util/unwind.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/perf/util/unwind.c b/tools/perf/util/unwind.c
index 958723b..50e14f7 100644
--- a/tools/perf/util/unwind.c
+++ b/tools/perf/util/unwind.c
@@ -26,7 +26,7 @@
#include <libunwind-ptrace.h>
#include "thread.h"
#include "session.h"
-#include "perf_regs.h"
+#include <perf_regs.h>
#include "unwind.h"
#include "util.h"

--
1.7.9.5

--
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/