diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-03-23 14:16:55 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-03-23 14:21:15 -0400 |
commit | 531d2410635ce290bee215f4bf9ec8ca98cf7302 (patch) | |
tree | 406ca6746166205c4a3b9c6c6c2aaceca7ccc5da | |
parent | 737ef7d32cb41d19f0e1fd4d9ad0916f42d2f448 (diff) |
perf tools: Do not include stringify.h from the kernel sources
Use instead the copy just made to tools/include/linux/.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-q736w12nwy98x5ox2hamp5ow@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tools/perf/arch/powerpc/util/header.c | 4 | ||||
-rw-r--r-- | tools/perf/builtin-report.c | 1 | ||||
-rw-r--r-- | tools/perf/builtin-top.c | 1 | ||||
-rw-r--r-- | tools/perf/util/util.h | 2 |
4 files changed, 3 insertions, 5 deletions
diff --git a/tools/perf/arch/powerpc/util/header.c b/tools/perf/arch/powerpc/util/header.c index 6c1b8a75db09..6138bdef6e63 100644 --- a/tools/perf/arch/powerpc/util/header.c +++ b/tools/perf/arch/powerpc/util/header.c | |||
@@ -3,9 +3,7 @@ | |||
3 | #include <stdio.h> | 3 | #include <stdio.h> |
4 | #include <stdlib.h> | 4 | #include <stdlib.h> |
5 | #include <string.h> | 5 | #include <string.h> |
6 | 6 | #include <linux/stringify.h> | |
7 | #include "../../util/header.h" | ||
8 | #include "../../util/util.h" | ||
9 | 7 | ||
10 | #define mfspr(rn) ({unsigned long rval; \ | 8 | #define mfspr(rn) ({unsigned long rval; \ |
11 | asm volatile("mfspr %0," __stringify(rn) \ | 9 | asm volatile("mfspr %0," __stringify(rn) \ |
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index ab47273a5373..160ea23b45aa 100644 --- a/tools/perf/builtin-report.c +++ b/tools/perf/builtin-report.c | |||
@@ -41,6 +41,7 @@ | |||
41 | 41 | ||
42 | #include <dlfcn.h> | 42 | #include <dlfcn.h> |
43 | #include <linux/bitmap.h> | 43 | #include <linux/bitmap.h> |
44 | #include <linux/stringify.h> | ||
44 | 45 | ||
45 | struct report { | 46 | struct report { |
46 | struct perf_tool tool; | 47 | struct perf_tool tool; |
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index 9b0f2df2faa0..833214979c4f 100644 --- a/tools/perf/builtin-top.c +++ b/tools/perf/builtin-top.c | |||
@@ -67,6 +67,7 @@ | |||
67 | #include <sys/utsname.h> | 67 | #include <sys/utsname.h> |
68 | #include <sys/mman.h> | 68 | #include <sys/mman.h> |
69 | 69 | ||
70 | #include <linux/stringify.h> | ||
70 | #include <linux/types.h> | 71 | #include <linux/types.h> |
71 | 72 | ||
72 | static volatile int done; | 73 | static volatile int done; |
diff --git a/tools/perf/util/util.h b/tools/perf/util/util.h index 46d4dd013a8b..835b8ceca041 100644 --- a/tools/perf/util/util.h +++ b/tools/perf/util/util.h | |||
@@ -138,8 +138,6 @@ void die(const char *err, ...) NORETURN __attribute__((format (printf, 1, 2))); | |||
138 | int error(const char *err, ...) __attribute__((format (printf, 1, 2))); | 138 | int error(const char *err, ...) __attribute__((format (printf, 1, 2))); |
139 | void warning(const char *err, ...) __attribute__((format (printf, 1, 2))); | 139 | void warning(const char *err, ...) __attribute__((format (printf, 1, 2))); |
140 | 140 | ||
141 | #include "../../../include/linux/stringify.h" | ||
142 | |||
143 | void set_warning_routine(void (*routine)(const char *err, va_list params)); | 141 | void set_warning_routine(void (*routine)(const char *err, va_list params)); |
144 | 142 | ||
145 | int prefixcmp(const char *str, const char *prefix); | 143 | int prefixcmp(const char *str, const char *prefix); |