Page MenuHomeFreeBSD

D30795.id.diff
No OneTemporary

D30795.id.diff

diff --git a/sys/compat/linuxkpi/common/include/linux/list.h b/sys/compat/linuxkpi/common/include/linux/list.h
--- a/sys/compat/linuxkpi/common/include/linux/list.h
+++ b/sys/compat/linuxkpi/common/include/linux/list.h
@@ -202,8 +202,6 @@
for (p = list_entry((h)->next, typeof(*p), field); &(p)->field != (h); \
p = list_entry((p)->field.next, typeof(*p), field))
-#define list_for_each_entry_lockless(...) list_for_each_entry(__VA_ARGS__)
-
#define list_for_each_entry_safe(p, n, h, field) \
for (p = list_entry((h)->next, typeof(*p), field), \
n = list_entry((p)->field.next, typeof(*p), field); &(p)->field != (h);\
diff --git a/sys/compat/linuxkpi/common/include/linux/rculist.h b/sys/compat/linuxkpi/common/include/linux/rculist.h
--- a/sys/compat/linuxkpi/common/include/linux/rculist.h
+++ b/sys/compat/linuxkpi/common/include/linux/rculist.h
@@ -44,6 +44,9 @@
&(pos)->member != (head); \
pos = list_entry_rcu((pos)->member.next, typeof(*(pos)), member))
+#define list_for_each_entry_lockless(pos, head, member) \
+ list_for_each_entry_rcu(pos, head, member)
+
static inline void
linux_list_add_rcu(struct list_head *new, struct list_head *prev,
struct list_head *next)

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 17, 8:38 AM (1 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14668328
Default Alt Text
D30795.id.diff (1 KB)

Event Timeline