list: include linux/kernel.h
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Mon, 13 Oct 2014 22:51:30 +0000 (15:51 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 14 Oct 2014 00:18:13 +0000 (02:18 +0200)
linux/list.h uses container_of, therefore it depends on linux/kernel.h.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/list.h

index cbbb96fcead9208da224866d849f3b3dfcf0337e..f33f831eb3c801925eed9f8d3333c65df8c57d08 100644 (file)
@@ -5,6 +5,7 @@
 #include <linux/stddef.h>
 #include <linux/poison.h>
 #include <linux/const.h>
+#include <linux/kernel.h>
 
 /*
  * Simple doubly linked list implementation.