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.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/perf/util/include/linux/compiler.h b/tools/perf/util/include/linux/compiler.h
new file mode 100644
index 000000000000..dfb0713ed47f
--- /dev/null
+++ b/tools/perf/util/include/linux/compiler.h
@@ -0,0 +1,10 @@
+#ifndef _PERF_LINUX_COMPILER_H_
+#define _PERF_LINUX_COMPILER_H_
+
+#ifndef __always_inline
+#define __always_inline inline
+#endif
+#define __user
+#define __attribute_const__
+
+#endif