This implementation of lists intended to be the only one and going to
replace the existing one completely. There is no need of LIST_HEAD
conflict avoidance. The prefetch is not belong here either.
Signed-off-by: Yuri Volchkov <yuri.volchkov@neclab.eu>
Reviewed-by: Sharan Santhanam <sharan.santhanam@neclab.eu>
extern "C" {
#endif
-#ifndef prefetch
-#define prefetch(x)
-#endif
-
#define LINUX_LIST_HEAD_INIT(name) { &(name), &(name) }
#define LINUX_LIST_HEAD(name) \
struct list_head name = LINUX_LIST_HEAD_INIT(name)
-#ifndef LIST_HEAD_DEF
-#define LIST_HEAD_DEF
struct list_head {
struct list_head *next;
struct list_head *prev;
};
-#endif
static inline void
INIT_LIST_HEAD(struct list_head *list)
INIT_LIST_HEAD(list);
}
-#undef LIST_HEAD
-#define LIST_HEAD(name) struct list_head name = { &(name), &(name) }
-
struct hlist_head {
struct hlist_node *first;