]> xenbits.xensource.com Git - unikraft/unikraft.git/commitdiff
include/uk/list: remove unneeded workarounds from imported code
authorYuri Volchkov <yuri.volchkov@neclab.eu>
Fri, 25 Jan 2019 14:09:59 +0000 (15:09 +0100)
committerSharan Santhanam <sharan.santhanam@neclab.eu>
Wed, 30 Jan 2019 10:22:56 +0000 (11:22 +0100)
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>
include/uk/list.h

index 9212356cd28a83a000e752a74fe45947bf25487b..bc99e755e03064a569b0111ead0b7eabfe96bf71 100644 (file)
 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)
@@ -273,9 +266,6 @@ list_splice_tail_init(struct list_head *list, struct list_head *head)
        INIT_LIST_HEAD(list);
 }
 
-#undef LIST_HEAD
-#define LIST_HEAD(name)        struct list_head name = { &(name), &(name) }
-
 
 struct hlist_head {
        struct hlist_node *first;