linux/list.h uses container_of, therefore it depends on linux/kernel.h.
Sync from below linux commit:
commit 8b21d9ca17ff8 ("list: include linux/kernel.h")
Signed-off-by: Mark-PK Tsai <[email protected]>
Cc: YJ Chiang <[email protected]>
---
include/linux/list.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/linux/list.h b/include/linux/list.h
index f62afa092c..5320c04bf3 100644
--- a/include/linux/list.h
+++ b/include/linux/list.h
@@ -3,6 +3,7 @@
#include <linux/stddef.h>
#include <linux/poison.h>
+#include <linux/kernel.h>
#ifndef ARCH_HAS_PREFETCH
#define ARCH_HAS_PREFETCH
--
2.18.0