summaryrefslogtreecommitdiff
path: root/tools/testing/radix-tree/linux/gfp.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/radix-tree/linux/gfp.h')
-rw-r--r--tools/testing/radix-tree/linux/gfp.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/testing/radix-tree/linux/gfp.h b/tools/testing/radix-tree/linux/gfp.h
new file mode 100644
index 000000000000..0e37f7a760eb
--- /dev/null
+++ b/tools/testing/radix-tree/linux/gfp.h
@@ -0,0 +1,10 @@
+#ifndef _GFP_H
+#define _GFP_H
+
+#define __GFP_BITS_SHIFT 22
+#define __GFP_BITS_MASK ((gfp_t)((1 << __GFP_BITS_SHIFT) - 1))
+#define __GFP_WAIT 1
+#define __GFP_ACCOUNT 0
+#define __GFP_NOWARN 0
+
+#endif