perf tools: Remove regex.h and fnmatch.h from util.h
tip-bot for Arnaldo Carvalho de Melo
merge botCommit-ID: 1eae20c1d40acf7676aa799b48f747d9b28bf352 Gitweb: http://git.kernel.org/tip/1eae20c1d40acf7676aa799b48f747d9b28bf352 Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Tue, 18 Apr 2017 12:33:30 -0300 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Wed, 19 Apr 2017 13:01:56 -0300
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 <[email protected]>
Cc David Ahern <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Wang Nan <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/builtin-report.c | 1 + tools/perf/util/machine.c | 1 + tools/perf/util/sort.c | 1 + tools/perf/util/sort.h | 2 +- tools/perf/util/util.h | 2 -- 5 files changed, 4 insertions(+), 3 deletions(-)
tools/perf/builtin-report.c +1 -0
@@ -41,6 +41,7 @@#include <dlfcn.h> #include <errno.h> #include <inttypes.h> +#include <regex.h> #include <linux/bitmap.h> #include <linux/stringify.h>
tools/perf/util/machine.c +1 -0
@@ -1,6 +1,7 @@#include <dirent.h> #include <errno.h> #include <inttypes.h> +#include <regex.h> #include "callchain.h" #include "debug.h" #include "event.h"
tools/perf/util/sort.c +1 -0
@@ -1,5 +1,6 @@#include <errno.h> #include <inttypes.h> +#include <regex.h> #include <sys/mman.h> #include "sort.h" #include "hist.h"
tools/perf/util/sort.h +1 -1
@@ -2,7 +2,7 @@#define __PERF_SORT_H#include "../builtin.h" -#include "util.h" +#include <regex.h> #include "color.h" #include <linux/list.h>
tools/perf/util/util.h +0 -2
@@ -23,9 +23,7 @@#include <sys/time.h> #include <time.h> #include <signal.h> -#include <fnmatch.h> #include <assert.h> -#include <regex.h> #include <utime.h> #include <sys/wait.h> #include <poll.h>