summaryrefslogtreecommitdiff
path: root/tools/testing/radix-tree/linux/types.h
blob: faa0b6ff9ca869f7791c23abe4293ad620e236d6 (plain)
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
#ifndef _TYPES_H
#define _TYPES_H

#include "../../include/linux/types.h"

#define __rcu
#define __read_mostly

#define BITS_PER_LONG (sizeof(long) * 8)

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