Skip to contentSkip to conversation

perf tools: Do not include stringify.h from the kernel sources

tip:perf/urgent tip-bot for Arnaldo Carvalho de Melo 1 participant 1 message Mar 24, 2016 perf events

lore
Share & tools
lore
#0 lore raw
Commit-ID:  531d2410635ce290bee215f4bf9ec8ca98cf7302
Gitweb:     http://git.kernel.org/tip/531d2410635ce290bee215f4bf9ec8ca98cf7302
Author:     Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Wed, 23 Mar 2016 15:16:55 -0300
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Wed, 23 Mar 2016 15:21:15 -0300

perf tools: Do not include stringify.h from the kernel sources

Use instead the copy just made to tools/include/linux/.

---
 tools/perf/arch/powerpc/util/header.c | 4 +---
 tools/perf/builtin-report.c           | 1 +
 tools/perf/builtin-top.c              | 1 +
 tools/perf/util/util.h                | 2 --
 4 files changed, 3 insertions(+), 5 deletions(-)
tools/perf/arch/powerpc/util/header.c +1 -3
index 6c1b8a7..6138bde 100644
@@ -3,9 +3,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-
-#include "../../util/header.h"
-#include "../../util/util.h"
+#include <linux/stringify.h>
 
 #define mfspr(rn)       ({unsigned long rval; \
 			 asm volatile("mfspr %0," __stringify(rn) \
tools/perf/builtin-report.c +1 -0
index ab47273..160ea23 100644
@@ -41,6 +41,7 @@
 
 #include <dlfcn.h>
 #include <linux/bitmap.h>
+#include <linux/stringify.h>
 
 struct report {
 	struct perf_tool	tool;
tools/perf/builtin-top.c +1 -0
index 9b0f2df..8332149 100644
@@ -67,6 +67,7 @@
 #include <sys/utsname.h>
 #include <sys/mman.h>
 
+#include <linux/stringify.h>
 #include <linux/types.h>
 
 static volatile int done;
tools/perf/util/util.h +0 -2
index 46d4dd0..835b8ce 100644
@@ -138,8 +138,6 @@ void die(const char *err, ...) NORETURN __attribute__((format (printf, 1, 2)));
 int error(const char *err, ...) __attribute__((format (printf, 1, 2)));
 void warning(const char *err, ...) __attribute__((format (printf, 1, 2)));
 
-#include "../../../include/linux/stringify.h"
-
 void set_warning_routine(void (*routine)(const char *err, va_list params));
 
 int prefixcmp(const char *str, const char *prefix);