Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1441892

[PATCH 33/66] perf bench futex: Add missing compiler.h header

From Arnaldo Carvalho de Melo <acme@kernel.org>
Newsgroups linux.kernel
Subject [PATCH 33/66] perf bench futex: Add missing compiler.h header
Date 2016-07-13 01:00 +0200
Message-ID <rUeOM-2RS-81@gated-at.bofh.it> (permalink)
References <rUeF3-2Ns-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Arnaldo Carvalho de Melo <acme@redhat.com>

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>
---
 tools/perf/bench/futex-hash.c          | 1 +
 tools/perf/bench/futex-lock-pi.c       | 1 +
 tools/perf/bench/futex-requeue.c       | 1 +
 tools/perf/bench/futex-wake-parallel.c | 1 +
 tools/perf/bench/futex-wake.c          | 1 +
 5 files changed, 5 insertions(+)

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 @@
 #include <errno.h>
 #include <signal.h>
 #include <stdlib.h>
+#include <linux/compiler.h>
 #include <linux/kernel.h>
 #include <sys/time.h>
 
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 @@
 #include <signal.h>
 #include "../util/stat.h"
 #include <subcmd/parse-options.h>
+#include <linux/compiler.h>
 #include <linux/kernel.h>
 #include <errno.h>
 #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 @@
 #include <signal.h>
 #include "../util/stat.h"
 #include <subcmd/parse-options.h>
+#include <linux/compiler.h>
 #include <linux/kernel.h>
 #include <errno.h>
 #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 @@
 #include <signal.h>
 #include "../util/stat.h"
 #include <subcmd/parse-options.h>
+#include <linux/compiler.h>
 #include <linux/kernel.h>
 #include <errno.h>
 #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 @@
 #include <signal.h>
 #include "../util/stat.h"
 #include <subcmd/parse-options.h>
+#include <linux/compiler.h>
 #include <linux/kernel.h>
 #include <errno.h>
 #include "bench.h"
-- 
2.7.4

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[GIT PULL 00/66] perf/core improvements and fixes Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-07-13 01:00 +0200
  [PATCH 25/66] perf tools: Add missing header to color.c Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-07-13 01:00 +0200
  [PATCH 33/66] perf bench futex: Add missing compiler.h header Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-07-13 01:00 +0200
  [PATCH 09/66] perf trace beauty open_flags: Add missing headers Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-07-13 01:00 +0200
  [PATCH 15/66] perf tests: Add missing pthread.h include for CPU_*() macros Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-07-13 01:00 +0200
  [PATCH 37/66] tools lib bpf: Copy bpf.h and bpf_common.h from the kernel Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-07-13 01:00 +0200
  Re: [GIT PULL 00/66] perf/core improvements and fixes Ingo Molnar <mingo@kernel.org> - 2016-07-13 09:10 +0200
    Re: [GIT PULL 00/66] perf/core improvements and fixes Ingo Molnar <mingo@kernel.org> - 2016-07-13 09:40 +0200
      Re: [GIT PULL 00/66] perf/core improvements and fixes Josh Poimboeuf <jpoimboe@redhat.com> - 2016-07-13 22:50 +0200
        Re: [GIT PULL 00/66] perf/core improvements and fixes Peter Zijlstra <peterz@infradead.org> - 2016-07-13 23:00 +0200
          Re: [GIT PULL 00/66] perf/core improvements and fixes Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-07-14 01:30 +0200
    Re: [GIT PULL 00/66] perf/core improvements and fixes Ingo Molnar <mingo@kernel.org> - 2016-07-13 09:40 +0200
  Re: [GIT PULL 00/66] perf/core improvements and fixes Ingo Molnar <mingo@kernel.org> - 2016-07-13 09:40 +0200

csiph-web