summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2017-04-18 11:33:30 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2017-04-19 12:01:56 -0400
commit1eae20c1d40acf7676aa799b48f747d9b28bf352 (patch)
tree404b15cff6e1c5fe940d299f215e44561d5b0cdf
parent76b31a29ddaf2fa5f0a70458c214bed02a4a70e9 (diff)
perf tools: Remove regex.h and fnmatch.h from util.h
The users of regex and fnmatch functions should include those headers instead. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.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-ixzm5kuamsq1ixbkuv6kmwzj@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r--tools/perf/builtin-report.c1
-rw-r--r--tools/perf/util/machine.c1
-rw-r--r--tools/perf/util/sort.c1
-rw-r--r--tools/perf/util/sort.h2
-rw-r--r--tools/perf/util/util.h2
5 files changed, 4 insertions, 3 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c
index f50738e0006e..5bbd4b2ef6d2 100644
--- a/tools/perf/builtin-report.c
+++ b/tools/perf/builtin-report.c
@@ -41,6 +41,7 @@
41#include <dlfcn.h> 41#include <dlfcn.h>
42#include <errno.h> 42#include <errno.h>
43#include <inttypes.h> 43#include <inttypes.h>
44#include <regex.h>
44#include <linux/bitmap.h> 45#include <linux/bitmap.h>
45#include <linux/stringify.h> 46#include <linux/stringify.h>
46 47
diff --git a/tools/perf/util/machine.c b/tools/perf/util/machine.c
index 46411742d03c..988e84ce6f88 100644
--- a/tools/perf/util/machine.c
+++ b/tools/perf/util/machine.c
@@ -1,6 +1,7 @@
1#include <dirent.h> 1#include <dirent.h>
2#include <errno.h> 2#include <errno.h>
3#include <inttypes.h> 3#include <inttypes.h>
4#include <regex.h>
4#include "callchain.h" 5#include "callchain.h"
5#include "debug.h" 6#include "debug.h"
6#include "event.h" 7#include "event.h"
diff --git a/tools/perf/util/sort.c b/tools/perf/util/sort.c
index 4df228ab4db1..fe4fd7b5f8e0 100644
--- a/tools/perf/util/sort.c
+++ b/tools/perf/util/sort.c
@@ -1,5 +1,6 @@
1#include <errno.h> 1#include <errno.h>
2#include <inttypes.h> 2#include <inttypes.h>
3#include <regex.h>
3#include <sys/mman.h> 4#include <sys/mman.h>
4#include "sort.h" 5#include "sort.h"
5#include "hist.h" 6#include "hist.h"
diff --git a/tools/perf/util/sort.h b/tools/perf/util/sort.h
index 421232a27e7b..8bcec05ee578 100644
--- a/tools/perf/util/sort.h
+++ b/tools/perf/util/sort.h
@@ -2,7 +2,7 @@
2#define __PERF_SORT_H 2#define __PERF_SORT_H
3#include "../builtin.h" 3#include "../builtin.h"
4 4
5#include "util.h" 5#include <regex.h>
6 6
7#include "color.h" 7#include "color.h"
8#include <linux/list.h> 8#include <linux/list.h>
diff --git a/tools/perf/util/util.h b/tools/perf/util/util.h
index c0574e2763b7..d79f3c23dd02 100644
--- a/tools/perf/util/util.h
+++ b/tools/perf/util/util.h
@@ -23,9 +23,7 @@
23#include <sys/time.h> 23#include <sys/time.h>
24#include <time.h> 24#include <time.h>
25#include <signal.h> 25#include <signal.h>
26#include <fnmatch.h>
27#include <assert.h> 26#include <assert.h>
28#include <regex.h>
29#include <utime.h> 27#include <utime.h>
30#include <sys/wait.h> 28#include <sys/wait.h>
31#include <poll.h> 29#include <poll.h>