summaryrefslogtreecommitdiff
path: root/urcu-list-compat.h
blob: 44117adc7add0a1dd3467168f7c7818c0d64ccf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef URCU_LIST_COMPAT_H
#define URCU_LIST_COMPAT_H

#include <urcu/list.h>

#ifndef cds_list_last_entry
#define cds_list_last_entry(ptr, type, member) \
	cds_list_entry((ptr)->prev, type, member)
#endif

#ifndef cds_list_next_entry
#define cds_list_next_entry(pos, member) \
	cds_list_entry((pos)->member.next, typeof(*(pos)), member)
#endif

#ifndef cds_list_prev_entry
#define cds_list_prev_entry(pos, member) \
	cds_list_entry((pos)->member.prev, typeof(*(pos)), member)
#endif

#endif /* URCU_LIST_COMPAT_H */
iffstat (limited to 'sound/soc/ux500/Makefile')