Skip to content

Commit

Permalink
perf tools: Do not include stringify.h from the kernel sources
Browse files Browse the repository at this point in the history
Use instead the copy just made to tools/include/linux/.

Cc: Adrian Hunter <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Wang Nan <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
  • Loading branch information
acmel committed Mar 23, 2016
1 parent 737ef7d commit 531d241
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions tools/perf/arch/powerpc/util/header.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand Down
1 change: 1 addition & 0 deletions tools/perf/builtin-report.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@

#include <dlfcn.h>
#include <linux/bitmap.h>
#include <linux/stringify.h>

struct report {
struct perf_tool tool;
Expand Down
1 change: 1 addition & 0 deletions tools/perf/builtin-top.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
#include <sys/utsname.h>
#include <sys/mman.h>

#include <linux/stringify.h>
#include <linux/types.h>

static volatile int done;
Expand Down
2 changes: 0 additions & 2 deletions tools/perf/util/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 531d241

Please sign in to comment.