summaryrefslogtreecommitdiffstats
path: root/backport-include/linux/compiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'backport-include/linux/compiler.h')
-rw-r--r--backport-include/linux/compiler.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/backport-include/linux/compiler.h b/backport-include/linux/compiler.h
new file mode 100644
index 0000000..0f5dfe4
--- /dev/null
+++ b/backport-include/linux/compiler.h
@@ -0,0 +1,17 @@
+#ifndef __BACKPORT_LINUX_COMPILER_H
+#define __BACKPORT_LINUX_COMPILER_H
+#include_next <linux/compiler.h>
+
+#ifndef __rcu
+#define __rcu
+#endif
+
+#ifndef __always_unused
+#ifdef __GNUC__
+#define __always_unused __attribute__((unused))
+#else
+#define __always_unused /* unimplemented */
+#endif
+#endif
+
+#endif /* __BACKPORT_LINUX_COMPILER_H */