summaryrefslogtreecommitdiff
path: root/tools/testing/radix-tree/linux/local_lock.h
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2020-06-14 06:07:10 -0400
committerMatthew Wilcox (Oracle) <willy@infradead.org>2020-10-07 09:07:49 -0400
commitdd841a749d1ded8e2e5facc4242ee0b6779fc0cb (patch)
tree22f71e40ffc875a9e2c0c354197dd8fd4be2b1ad /tools/testing/radix-tree/linux/local_lock.h
parent856deb866d16e29bd65952e0289066f6078af773 (diff)
radix tree test suite: Fix compilation
Introducing local_lock broke compilation; fix it all up. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Diffstat (limited to 'tools/testing/radix-tree/linux/local_lock.h')
-rw-r--r--tools/testing/radix-tree/linux/local_lock.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/testing/radix-tree/linux/local_lock.h b/tools/testing/radix-tree/linux/local_lock.h
new file mode 100644
index 000000000000..b3cf8b233ca4
--- /dev/null
+++ b/tools/testing/radix-tree/linux/local_lock.h
@@ -0,0 +1,8 @@
+#ifndef _LINUX_LOCAL_LOCK
+#define _LINUX_LOCAL_LOCK
+typedef struct { } local_lock_t;
+
+static inline void local_lock(local_lock_t *lock) { }
+static inline void local_unlock(local_lock_t *lock) { }
+#define INIT_LOCAL_LOCK(x) { }
+#endif