Skip to contentSkip to conversation

list: include linux/kernel.h

PATCH In review Mark-PK Tsai 2 participants 4 messages Aug 25, 2021 – Sep 2, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 list: include linux/kernel.h

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")

---
 include/linux/list.h | 1 +
 1 file changed, 1 insertion(+)
include/linux/list.h +1 -0
index f62afa092c..5320c04bf3 100644
@@ -3,6 +3,7 @@
 
 #include <linux/stddef.h>
 #include <linux/poison.h>
+#include <linux/kernel.h>
 
 #ifndef ARCH_HAS_PREFETCH
 #define ARCH_HAS_PREFETCH
Signature · 1 line
2.18.0
#1 lore raw

PATCH 1/1 list: include linux/kernel.h

Hi,

Could anyone please help to review this patch?

#2 lore raw
Quoted 3 lines · Mark-PK Tsai

Hi,

Could anyone please help to review this patch?

It seems fine, but as nothing is currently breaking in-tree, it'll wait for -next. Thanks.

Signature · 1 line
Tom
#3 lore raw
In reply to Mark-PK Tsai
Quoted 16 lines · Mark-PK Tsai

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")

---
 include/linux/list.h | 1 +
 1 file changed, 1 insertion(+)
include/linux/list.h +0 -0
index f62afa092c..5320c04bf3 100644

include/linux/list.h line 9

Quoted 7 lines
include/linux/list.h +1 -0
@@ -3,6 +3,7 @@
 
 #include <linux/stddef.h>
 #include <linux/poison.h>
+#include <linux/kernel.h>
 
 #ifndef ARCH_HAS_PREFETCH
 #define ARCH_HAS_PREFETCH

This causes sandbox to fail to build.

Signature · 1 line
Tom