Browse Source

list_nulls: fix missing header

Fixup below build error:

include/linux/list_nulls.h: In function ‘hlist_nulls_del’:
include/linux/list_nulls.h:84:13: error: ‘LIST_POISON2’ undeclared (first use in this function)

Signed-off-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Ying Xue 10 years ago
parent
commit
a3449ded12
1 changed files with 3 additions and 0 deletions
  1. 3 0
      include/linux/list_nulls.h

+ 3 - 0
include/linux/list_nulls.h

@@ -1,6 +1,9 @@
 #ifndef _LINUX_LIST_NULLS_H
 #ifndef _LINUX_LIST_NULLS_H
 #define _LINUX_LIST_NULLS_H
 #define _LINUX_LIST_NULLS_H
 
 
+#include <linux/poison.h>
+#include <linux/const.h>
+
 /*
 /*
  * Special version of lists, where end of list is not a NULL pointer,
  * Special version of lists, where end of list is not a NULL pointer,
  * but a 'nulls' marker, which can have many different values.
  * but a 'nulls' marker, which can have many different values.