]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - tools/include/linux/compiler.h
tools include: Move perf's linux/compiler.h to a generic place
[karo-tx-linux.git] / tools / include / linux / compiler.h
diff --git a/tools/include/linux/compiler.h b/tools/include/linux/compiler.h
new file mode 100644 (file)
index 0000000..0135ccf
--- /dev/null
@@ -0,0 +1,30 @@
+#ifndef _TOOLS_LINUX_COMPILER_H_
+#define _TOOLS_LINUX_COMPILER_H_
+
+#ifndef __always_inline
+# define __always_inline       inline __attribute__((always_inline))
+#endif
+
+#define __user
+
+#ifndef __attribute_const__
+# define __attribute_const__
+#endif
+
+#ifndef __maybe_unused
+# define __maybe_unused                __attribute__((unused))
+#endif
+
+#ifndef __packed
+# define __packed              __attribute__((__packed__))
+#endif
+
+#ifndef __force
+# define __force
+#endif
+
+#ifndef __weak
+# define __weak                        __attribute__((weak))
+#endif
+
+#endif /* _TOOLS_LINUX_COMPILER_H */