perf tools: Do not include stringify.h from the kernel sources
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 23 Mar 2016 18:16:55 +0000 (15:16 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 23 Mar 2016 18:21:15 +0000 (15:21 -0300)
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>
tools/perf/arch/powerpc/util/header.c
tools/perf/builtin-report.c
tools/perf/builtin-top.c
tools/perf/util/util.h

index 6c1b8a75db09ae4b8bda966463e829e0451489e4..6138bdef6e63d9f3da37716866f2a38544c2a0c1 100644 (file)
@@ -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) \
index ab47273a53732aa85c5f05a42f0587b3054a87c9..160ea23b45aaf5450f85b402ef38b27e06b63003 100644 (file)
@@ -41,6 +41,7 @@
 
 #include <dlfcn.h>
 #include <linux/bitmap.h>
+#include <linux/stringify.h>
 
 struct report {
        struct perf_tool        tool;
index 9b0f2df2faa046508cd620d811e7bb7e770b8da1..833214979c4f49c7e211ecef49d8e4833635ad41 100644 (file)
@@ -67,6 +67,7 @@
 #include <sys/utsname.h>
 #include <sys/mman.h>
 
+#include <linux/stringify.h>
 #include <linux/types.h>
 
 static volatile int done;
index 46d4dd013a8b9c39caad105dddc622968dc009af..835b8ceca04189e9a1baf895603cdf677f29ece9 100644 (file)
@@ -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);