summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/include/linux/compiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/include/linux/compiler.h')
-rw-r--r--tools/perf/util/include/linux/compiler.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/perf/util/include/linux/compiler.h b/tools/perf/util/include/linux/compiler.h
index ce2367b7b3f6..96b919dae11c 100644
--- a/tools/perf/util/include/linux/compiler.h
+++ b/tools/perf/util/include/linux/compiler.h
@@ -9,7 +9,9 @@
#define __attribute_const__
#endif
-#define __used __attribute__((__unused__))
+#ifndef __maybe_unused
+#define __maybe_unused __attribute__((unused))
+#endif
#define __packed __attribute__((__packed__))
#ifndef __force
OpenPOWER on IntegriCloud