|
@@ -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>
|
|
@@ -16,10 +17,6 @@
|
|
|
* 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) \
|
|
@@ -551,14 +548,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)
|