list_nulls: fix missing header
authorYing Xue <ying.xue@windriver.com>
Sun, 4 Jan 2015 07:24:35 +0000 (15:24 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Jan 2015 04:11:43 +0000 (23:11 -0500)
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>
include/linux/list_nulls.h

index e8c300e06438de24b069780f351a97ad467a5e40..f266661d2666596d808bbe8756c91239f5b8e6dc 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef _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,
  * but a 'nulls' marker, which can have many different values.