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/linux | |
parent | a3c7890790e742074bc9e5640b0fcf9c61a771a2 (diff) | |
download | linux-12ea65390bd5a46f8a70f068eb0d48922576a781.tar.gz linux-12ea65390bd5a46f8a70f068eb0d48922576a781.tar.bz2 linux-12ea65390bd5a46f8a70f068eb0d48922576a781.zip |
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.h | 2 | ||||
-rw-r--r-- | tools/testing/radix-tree/linux/types.h | 23 |
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 @@ #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 8491d89873bb..000000000000 --- 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 |