aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/radix-tree/linux/types.h
blob: 72a9d85f6c766298ed5874f64f95d6f037a79a71 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef _TYPES_H
#define _TYPES_H

#define __rcu
#define __read_mostly

#define BITS_PER_LONG (sizeof(long) * 8)

struct list_head {
	struct list_head *next, *prev;
};

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

typedef unsigned gfp_t;
#include <linux/gfp.h>

#endif