]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - include/linux/list.h
Merge branch 'master' into for-linus
[net-next-2.6.git] / include / linux / list.h
index 5d57a3a1fa1b1b9143a5e80381ac7668b51bb677..d167b5d7c0ac0844d9b42fab6a16d486793878c5 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef _LINUX_LIST_H
 #define _LINUX_LIST_H
 
+#include <linux/types.h>
 #include <linux/stddef.h>
 #include <linux/poison.h>
 #include <linux/prefetch.h>
  * using the generic single-entry routines.
  */
 
-struct list_head {
-       struct list_head *next, *prev;
-};
-
 #define LIST_HEAD_INIT(name) { &(name), &(name) }
 
 #define LIST_HEAD(name) \
@@ -566,14 +563,6 @@ static inline void list_splice_tail_init(struct list_head *list,
  * You lose the ability to access the tail in O(1).
  */
 
-struct hlist_head {
-       struct hlist_node *first;
-};
-
-struct hlist_node {
-       struct hlist_node *next, **pprev;
-};
-
 #define HLIST_HEAD_INIT { .first = NULL }
 #define HLIST_HEAD(name) struct hlist_head name = {  .first = NULL }
 #define INIT_HLIST_HEAD(ptr) ((ptr)->first = NULL)