aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2016-07-11 09:05:52 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-07-12 14:20:30 -0400
commit86695f59c952031e5596f286773d76268f3e3aad (patch)
tree7d2a3ac512874c9318bbff0026b61b58bfcfe900 /tools/perf
parent07eebccbca2c21f32b5142f1a55b3b6818c54116 (diff)
perf bench futex: Add missing compiler.h header
Since these files use __maybe_unused, and that is defined in linux/compiler.h, include it. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Davidlohr Bueso <dbueso@suse.de> Cc: Hitoshi Mitake <mitake@dcl.info.waseda.ac.jp> 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-1llbf59ut6xon6ti88jm0n9j@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf')
-rw-r--r--tools/perf/bench/futex-hash.c1
-rw-r--r--tools/perf/bench/futex-lock-pi.c1
-rw-r--r--tools/perf/bench/futex-requeue.c1
-rw-r--r--tools/perf/bench/futex-wake-parallel.c1
-rw-r--r--tools/perf/bench/futex-wake.c1
5 files changed, 5 insertions, 0 deletions
diff --git a/tools/perf/bench/futex-hash.c b/tools/perf/bench/futex-hash.c
index caa9726ec9bd..8024cd5febd2 100644
--- a/tools/perf/bench/futex-hash.c
+++ b/tools/perf/bench/futex-hash.c
@@ -14,6 +14,7 @@
14#include <errno.h> 14#include <errno.h>
15#include <signal.h> 15#include <signal.h>
16#include <stdlib.h> 16#include <stdlib.h>
17#include <linux/compiler.h>
17#include <linux/kernel.h> 18#include <linux/kernel.h>
18#include <sys/time.h> 19#include <sys/time.h>
19 20
diff --git a/tools/perf/bench/futex-lock-pi.c b/tools/perf/bench/futex-lock-pi.c
index e2ba0d6f64fe..936d89d30483 100644
--- a/tools/perf/bench/futex-lock-pi.c
+++ b/tools/perf/bench/futex-lock-pi.c
@@ -8,6 +8,7 @@
8#include <signal.h> 8#include <signal.h>
9#include "../util/stat.h" 9#include "../util/stat.h"
10#include <subcmd/parse-options.h> 10#include <subcmd/parse-options.h>
11#include <linux/compiler.h>
11#include <linux/kernel.h> 12#include <linux/kernel.h>
12#include <errno.h> 13#include <errno.h>
13#include "bench.h" 14#include "bench.h"
diff --git a/tools/perf/bench/futex-requeue.c b/tools/perf/bench/futex-requeue.c
index 7eceb0500900..f96e22ed9f87 100644
--- a/tools/perf/bench/futex-requeue.c
+++ b/tools/perf/bench/futex-requeue.c
@@ -14,6 +14,7 @@
14#include <signal.h> 14#include <signal.h>
15#include "../util/stat.h" 15#include "../util/stat.h"
16#include <subcmd/parse-options.h> 16#include <subcmd/parse-options.h>
17#include <linux/compiler.h>
17#include <linux/kernel.h> 18#include <linux/kernel.h>
18#include <errno.h> 19#include <errno.h>
19#include "bench.h" 20#include "bench.h"
diff --git a/tools/perf/bench/futex-wake-parallel.c b/tools/perf/bench/futex-wake-parallel.c
index 8143b54ff119..4a2ecd7438ca 100644
--- a/tools/perf/bench/futex-wake-parallel.c
+++ b/tools/perf/bench/futex-wake-parallel.c
@@ -13,6 +13,7 @@
13#include <signal.h> 13#include <signal.h>
14#include "../util/stat.h" 14#include "../util/stat.h"
15#include <subcmd/parse-options.h> 15#include <subcmd/parse-options.h>
16#include <linux/compiler.h>
16#include <linux/kernel.h> 17#include <linux/kernel.h>
17#include <errno.h> 18#include <errno.h>
18#include "bench.h" 19#include "bench.h"
diff --git a/tools/perf/bench/futex-wake.c b/tools/perf/bench/futex-wake.c
index e978d5610e5f..87d8f4f292d9 100644
--- a/tools/perf/bench/futex-wake.c
+++ b/tools/perf/bench/futex-wake.c
@@ -14,6 +14,7 @@
14#include <signal.h> 14#include <signal.h>
15#include "../util/stat.h" 15#include "../util/stat.h"
16#include <subcmd/parse-options.h> 16#include <subcmd/parse-options.h>
17#include <linux/compiler.h>
17#include <linux/kernel.h> 18#include <linux/kernel.h>
18#include <errno.h> 19#include <errno.h>
19#include "bench.h" 20#include "bench.h"