perf tools: Include sys/param.h where needed
tip-bot for Arnaldo Carvalho de Melo
merge botCommit-ID: 391e42060098a743a87380ed02bf4c8126742b04 Gitweb: http://git.kernel.org/tip/391e42060098a743a87380ed02bf4c8126742b04 Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Wed, 19 Apr 2017 18:51:14 -0300 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Mon, 24 Apr 2017 13:43:30 -0300
perf tools: Include sys/param.h where needed
As it is going away from util.h, where it is not needed.
This is mostly for things like MAXPATHLEN, MAX() and MIN(), these later two probably should go away in favor of its kernel sources replacements.
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/builtin-c2c.c | 1 + tools/perf/builtin-script.c | 1 + tools/perf/tests/attr.c | 1 + tools/perf/tests/code-reading.c | 1 + tools/perf/util/config.c | 1 + tools/perf/util/header.c | 1 + tools/perf/util/hist.c | 1 + tools/perf/util/parse-events.c | 1 + tools/perf/util/util.h | 1 - 9 files changed, 8 insertions(+), 1 deletion(-)
tools/perf/builtin-c2c.c +1 -0
@@ -15,6 +15,7 @@#include <linux/kernel.h> #include <linux/stringify.h> #include <asm/bug.h> +#include <sys/param.h> #include "util.h" #include "debug.h" #include "builtin.h"
tools/perf/builtin-script.c +1 -0
@@ -36,6 +36,7 @@#include <errno.h> #include <inttypes.h> #include <signal.h> +#include <sys/param.h> #include "sane_ctype.h"
tools/perf/tests/attr.c +1 -0
@@ -24,6 +24,7 @@#include <stdio.h> #include <linux/types.h> #include <linux/kernel.h> +#include <sys/param.h> #include "../perf.h" #include "util.h" #include <subcmd/exec-cmd.h>
tools/perf/tests/code-reading.c +1 -0
@@ -6,6 +6,7 @@#include <unistd.h> #include <stdio.h> #include <string.h> +#include <sys/param.h> #include "parse-events.h" #include "evlist.h"
tools/perf/util/config.c +1 -0
@@ -9,6 +9,7 @@* */ #include <errno.h> +#include <sys/param.h> #include "util.h" #include "cache.h" #include <subcmd/exec-cmd.h>
tools/perf/util/header.c +1 -0
@@ -2,6 +2,7 @@#include <inttypes.h> #include "util.h" #include "string2.h" +#include <sys/param.h> #include <sys/types.h> #include <byteswap.h> #include <unistd.h>
tools/perf/util/hist.c +1 -0
@@ -12,6 +12,7 @@#include "ui/progress.h" #include <errno.h> #include <math.h> +#include <sys/param.h> static bool hists__filter_entry_by_dso (struct hists *hists,struct hist_entry *he);
tools/perf/util/parse-events.c +1 -0
@@ -2,6 +2,7 @@#include <linux/err.h> #include <dirent.h> #include <errno.h> +#include <sys/param.h> #include "term.h" #include "../perf.h" #include "evlist.h"
tools/perf/util/util.h +0 -1
@@ -17,7 +17,6 @@#include <stdlib.h> #include <stdarg.h> #include <string.h> -#include <sys/param.h> #include <sys/types.h> #include <assert.h> #include <sys/wait.h>