]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
perf tools: Include sys/param.h where needed
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 19 Apr 2017 21:51:14 +0000 (18:51 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 24 Apr 2017 16:43:30 +0000 (13:43 -0300)
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.

Link: http://lkml.kernel.org/n/tip-z1666f3fl3fqobxvjr5o2r39@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-c2c.c
tools/perf/builtin-script.c
tools/perf/tests/attr.c
tools/perf/tests/code-reading.c
tools/perf/util/config.c
tools/perf/util/header.c
tools/perf/util/hist.c
tools/perf/util/parse-events.c
tools/perf/util/util.h

index a90c1260f49ef59f2b2ff5a82af608bf477cf122..a14be1cd3d70f0fe42c20c0b083cdab455ae7459 100644 (file)
@@ -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"
index 76a88bdeebe47f7b86ff3f8d4c8bfc1e9c0cbfa3..b093a3c21e40590d12c236f1696258e9a43d69e4 100644 (file)
@@ -36,6 +36,7 @@
 #include <errno.h>
 #include <inttypes.h>
 #include <signal.h>
+#include <sys/param.h>
 
 #include "sane_ctype.h"
 
index ba87cd529bfcf2a8b6f7a039b5cdfdb55097e11a..c19e0da543374b2c4afeb76d56446cfac53547a0 100644 (file)
@@ -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>
index 3a8bf15654939e9bd2cff8cd37f680aabb88e996..1f14e7612cbb1615e993c73758a3c9ac7024a0e1 100644 (file)
@@ -6,6 +6,7 @@
 #include <unistd.h>
 #include <stdio.h>
 #include <string.h>
+#include <sys/param.h>
 
 #include "parse-events.h"
 #include "evlist.h"
index f5604039cbe49ae6e37797053ccbf7c5520f6c4d..07d87d2dbee7b113614b0300b1c153ad30132922 100644 (file)
@@ -9,6 +9,7 @@
  *
  */
 #include <errno.h>
+#include <sys/param.h>
 #include "util.h"
 #include "cache.h"
 #include <subcmd/exec-cmd.h>
index 28a3acb7b3135eaf9e95acb5a342b98d89aaea2b..915bc4f3948240a4d4b535474ece8043f1d74cb5 100644 (file)
@@ -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>
index 65d42758aaddb275c97f0faa68078e4ecaea33b5..2944458b9edf90ebb985250bd144fd620f147f6f 100644 (file)
@@ -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);
index 7d84338b19ee1ecbe10484487d43f111aef75164..4f7e42e18f8a5fe75ec7f7538017a8dfe3a4a1f2 100644 (file)
@@ -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"
index fcad17ce5c19f94c7526b2e14da58143a6b95f96..4e2afd6427cd52943027fd937490b6e71a46b0da 100644 (file)
@@ -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>