diff options
author | Matthew Wilcox <mawilcox@microsoft.com> | 2016-12-16 14:53:45 -0500 |
---|---|---|
committer | Matthew Wilcox <mawilcox@microsoft.com> | 2017-02-13 16:09:41 -0500 |
commit | 12ea65390bd5a46f8a70f068eb0d48922576a781 (patch) | |
tree | 014cc8039fa7318fa2eb6fa8392d26c8897fb14f /tools/testing/radix-tree | |
parent | a3c7890790e742074bc9e5640b0fcf9c61a771a2 (diff) | |
download | op-kernel-dev-12ea65390bd5a46f8a70f068eb0d48922576a781.zip op-kernel-dev-12ea65390bd5a46f8a70f068eb0d48922576a781.tar.gz |
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')
-rw-r--r-- | tools/testing/radix-tree/linux.c | 1 | ||||
-rw-r--r-- | tools/testing/radix-tree/linux/gfp.h | 2 | ||||
-rw-r--r-- | tools/testing/radix-tree/linux/types.h | 23 |
3 files changed, 3 insertions, 23 deletions
diff --git a/tools/testing/radix-tree/linux.c b/tools/testing/radix-tree/linux.c index c27c112..93f0661 100644 --- a/tools/testing/radix-tree/linux.c +++ b/tools/testing/radix-tree/linux.c @@ -5,6 +5,7 @@ #include <unistd.h> #include <assert.h> +#include <linux/gfp.h> #include <linux/poison.h> #include <linux/slab.h> #include <linux/radix-tree.h> diff --git a/tools/testing/radix-tree/linux/gfp.h b/tools/testing/radix-tree/linux/gfp.h index 5b09b2c..7012098 100644 --- a/tools/testing/radix-tree/linux/gfp.h +++ b/tools/testing/radix-tree/linux/gfp.h @@ -1,6 +1,8 @@ #ifndef _GFP_H #define _GFP_H +#include <linux/types.h> + #define __GFP_BITS_SHIFT 26 #define __GFP_BITS_MASK ((gfp_t)((1 << __GFP_BITS_SHIFT) - 1)) diff --git a/tools/testing/radix-tree/linux/types.h b/tools/testing/radix-tree/linux/types.h deleted file mode 100644 index 8491d89..0000000 --- a/tools/testing/radix-tree/linux/types.h +++ /dev/null @@ -1,23 +0,0 @@ -#ifndef _TYPES_H -#define _TYPES_H - -#include "../../include/linux/types.h" - -#define __rcu -#define __read_mostly - -static inline void INIT_LIST_HEAD(struct list_head *list) -{ - list->next = list; - list->prev = list; -} - -typedef struct { - unsigned int x; -} spinlock_t; - -#define uninitialized_var(x) x = x - -#include <linux/gfp.h> - -#endif |