diff options
Diffstat (limited to 'include/linux/list.h')
-rw-r--r-- | include/linux/list.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/list.h b/include/linux/list.h index d167b5d7c0ac..9a5f8a71810c 100644 --- a/include/linux/list.h +++ b/include/linux/list.h | |||
@@ -5,7 +5,6 @@ | |||
5 | #include <linux/stddef.h> | 5 | #include <linux/stddef.h> |
6 | #include <linux/poison.h> | 6 | #include <linux/poison.h> |
7 | #include <linux/prefetch.h> | 7 | #include <linux/prefetch.h> |
8 | #include <asm/system.h> | ||
9 | 8 | ||
10 | /* | 9 | /* |
11 | * Simple doubly linked list implementation. | 10 | * Simple doubly linked list implementation. |
@@ -637,6 +636,12 @@ static inline void hlist_add_after(struct hlist_node *n, | |||
637 | next->next->pprev = &next->next; | 636 | next->next->pprev = &next->next; |
638 | } | 637 | } |
639 | 638 | ||
639 | /* after that we'll appear to be on some hlist and hlist_del will work */ | ||
640 | static inline void hlist_add_fake(struct hlist_node *n) | ||
641 | { | ||
642 | n->pprev = &n->next; | ||
643 | } | ||
644 | |||
640 | /* | 645 | /* |
641 | * Move a list from one list head to another. Fixup the pprev | 646 | * Move a list from one list head to another. Fixup the pprev |
642 | * reference of the first entry if it exists. | 647 | * reference of the first entry if it exists. |