aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/radix-tree/linux
diff options
context:
space:
mode:
authorMatthew Wilcox <mawilcox@microsoft.com>2016-12-16 14:53:45 -0500
committerMatthew Wilcox <mawilcox@microsoft.com>2017-02-13 16:09:41 -0500
commit12ea65390bd5a46f8a70f068eb0d48922576a781 (patch)
tree014cc8039fa7318fa2eb6fa8392d26c8897fb14f /tools/testing/radix-tree/linux
parenta3c7890790e742074bc9e5640b0fcf9c61a771a2 (diff)
radix tree test suite: Remove types.h
Move the pieces we still need to tools/include and update a few implicit includes. Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
Diffstat (limited to 'tools/testing/radix-tree/linux')
-rw-r--r--tools/testing/radix-tree/linux/gfp.h2
-rw-r--r--tools/testing/radix-tree/linux/types.h23
2 files changed, 2 insertions, 23 deletions
diff --git a/tools/testing/radix-tree/linux/gfp.h b/tools/testing/radix-tree/linux/gfp.h
index 5b09b2ce6c33..701209816a6b 100644
--- a/tools/testing/radix-tree/linux/gfp.h
+++ b/tools/testing/radix-tree/linux/gfp.h
@@ -1,6 +1,8 @@
1#ifndef _GFP_H 1#ifndef _GFP_H
2#define _GFP_H 2#define _GFP_H
3 3
4#include <linux/types.h>
5
4#define __GFP_BITS_SHIFT 26 6#define __GFP_BITS_SHIFT 26
5#define __GFP_BITS_MASK ((gfp_t)((1 << __GFP_BITS_SHIFT) - 1)) 7#define __GFP_BITS_MASK ((gfp_t)((1 << __GFP_BITS_SHIFT) - 1))
6 8
diff --git a/tools/testing/radix-tree/linux/types.h b/tools/testing/radix-tree/linux/types.h
deleted file mode 100644
index 8491d89873bb..000000000000
--- a/tools/testing/radix-tree/linux/types.h
+++ /dev/null
@@ -1,23 +0,0 @@
1#ifndef _TYPES_H
2#define _TYPES_H
3
4#include "../../include/linux/types.h"
5
6#define __rcu
7#define __read_mostly
8
9static inline void INIT_LIST_HEAD(struct list_head *list)
10{
11 list->next = list;
12 list->prev = list;
13}
14
15typedef struct {
16 unsigned int x;
17} spinlock_t;
18
19#define uninitialized_var(x) x = x
20
21#include <linux/gfp.h>
22
23#endif