summaryrefslogtreecommitdiffstats
path: root/rust/kernel/src/bindings_helper.h
diff options
context:
space:
mode:
Diffstat (limited to 'rust/kernel/src/bindings_helper.h')
-rw-r--r--rust/kernel/src/bindings_helper.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/rust/kernel/src/bindings_helper.h b/rust/kernel/src/bindings_helper.h
new file mode 100644
index 000000000000..b5b0b2e1d18d
--- /dev/null
+++ b/rust/kernel/src/bindings_helper.h
@@ -0,0 +1,12 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+
+#include <linux/cdev.h>
+#include <linux/fs.h>
+#include <linux/module.h>
+#include <linux/random.h>
+#include <linux/slab.h>
+#include <linux/uaccess.h>
+#include <linux/version.h>
+
+// bindgen gets confused at certain things
+const gfp_t BINDINGS_GFP_KERNEL = GFP_KERNEL;