radix tree test suite: fix build
[linux-2.6-microblaze.git] / tools / testing / radix-tree / linux / types.h
1 #ifndef _TYPES_H
2 #define _TYPES_H
3
4 #include "../../include/linux/types.h"
5
6 #define __rcu
7 #define __read_mostly
8
9 #define BITS_PER_LONG (sizeof(long) * 8)
10
11 static inline void INIT_LIST_HEAD(struct list_head *list)
12 {
13         list->next = list;
14         list->prev = list;
15 }
16
17 typedef struct {
18         unsigned int x;
19 } spinlock_t;
20
21 #define uninitialized_var(x) x = x
22
23 #include <linux/gfp.h>
24
25 #endif