From fbb8a81d1a37ac9dc43e61ce975a0b27e58b61db Mon Sep 17 00:00:00 2001 From: Andre Przywara Date: Tue, 20 Jan 2015 23:47:04 +0000 Subject: [PATCH] kvmtool: list.h: get rid of poison.h include The special Linux poison bits do not make sense in userland, so just replace them with NULL to spot bogus accesses. Signed-off-by: Andre Przywara Signed-off-by: Will Deacon --- include/linux/list.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/include/linux/list.h b/include/linux/list.h index feb773c..2e92b3f 100644 --- a/include/linux/list.h +++ b/include/linux/list.h @@ -3,7 +3,6 @@ #include #include -#include #include #include @@ -105,8 +104,8 @@ static inline void __list_del_entry(struct list_head *entry) static inline void list_del(struct list_head *entry) { __list_del(entry->prev, entry->next); - entry->next = LIST_POISON1; - entry->prev = LIST_POISON2; + entry->next = NULL; + entry->prev = NULL; } #else extern void __list_del_entry(struct list_head *entry); @@ -623,8 +622,8 @@ static inline void __hlist_del(struct hlist_node *n) static inline void hlist_del(struct hlist_node *n) { __hlist_del(n); - n->next = LIST_POISON1; - n->pprev = LIST_POISON2; + n->next = NULL; + n->pprev = NULL; } static inline void hlist_del_init(struct hlist_node *n)