summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/jffs2/include/linux/mutex.h
blob: cc82a3f17a393ec27e2565b258b27f25dbc56758 (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
29
30
31
#ifndef __LINUX_MUTEX_H
#define __LINUX_MUTEX_H

struct mutex { };

#define DEFINE_MUTEX(m) struct mutex m

static inline void mutex_init(struct mutex *m)
{
	(void) m;
}

static inline void mutex_lock(struct mutex *m)
{
	(void) m;
}

static inline int mutex_lock_interruptible(struct mutex *m)
{
	(void) m;
	return 0;
}

static inline void mutex_unlock(struct mutex *m)
{
	(void) m;
}

#define mutex_is_locked(m) 1

#endif