Module Name: src Committed By: riastradh Date: Mon Aug 27 06:57:44 UTC 2018
Modified Files: src/sys/external/bsd/common/include/linux: list.h Log Message: Fix hlist_for_each_entry_rcu like hlist_for_each_entry. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/sys/external/bsd/common/include/linux/list.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/external/bsd/common/include/linux/list.h diff -u src/sys/external/bsd/common/include/linux/list.h:1.10 src/sys/external/bsd/common/include/linux/list.h:1.11 --- src/sys/external/bsd/common/include/linux/list.h:1.10 Mon Aug 27 06:55:43 2018 +++ src/sys/external/bsd/common/include/linux/list.h Mon Aug 27 06:57:44 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: list.h,v 1.10 2018/08/27 06:55:43 riastradh Exp $ */ +/* $NetBSD: list.h,v 1.11 2018/08/27 06:57:44 riastradh Exp $ */ /*- * Copyright (c) 2013 The NetBSD Foundation, Inc. @@ -325,8 +325,8 @@ hlist_del_init(struct hlist_node *node) hlist_entry(hlist_first_rcu(HEAD), typeof(*(VAR)), \ FIELD)); \ (VAR) != NULL; \ - (VAR) = (hlist_next_rcu(VAR) == NULL ? NULL : \ - hlist_entry(hlist_next_rcu(VAR), typeof(*(VAR)), \ - FIELD))) + (VAR) = (hlist_next_rcu(&(VAR)->FIELD) == NULL ? NULL : \ + hlist_entry(hlist_next_rcu(&(VAR)->FIELD), \ + typeof(*(VAR)), FIELD))) #endif /* _LINUX_LIST_H_ */