[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Minios-devel] [UNIKRAFT PATCH v2 06/11] include/uk/list: remove unneeded workarounds from imported code
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@xxxxxxxxx> Reviewed-by: Sharan Santhanam <sharan.santhanam@xxxxxxxxx> --- include/uk/list.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/include/uk/list.h b/include/uk/list.h index 9212356c..bc99e755 100644 --- a/include/uk/list.h +++ b/include/uk/list.h @@ -38,22 +38,15 @@ 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; -- 2.19.2 _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |