summaryrefslogtreecommitdiffstats
path: root/tools/testing/radix-tree/linux/types.h
blob: 8491d89873bb03005a0a4dde1a8cf531b9a63c25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#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