Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/common/include/linux Fix hlist_for_each_ent...
details: https://anonhg.NetBSD.org/src/rev/bd0dd3f6436a
branches: trunk
changeset: 364317:bd0dd3f6436a
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Aug 27 06:57:44 2018 +0000
description:
Fix hlist_for_each_entry_rcu like hlist_for_each_entry.
diffstat:
sys/external/bsd/common/include/linux/list.h | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (21 lines):
diff -r ca5059f12e4c -r bd0dd3f6436a sys/external/bsd/common/include/linux/list.h
--- a/sys/external/bsd/common/include/linux/list.h Mon Aug 27 06:57:32 2018 +0000
+++ b/sys/external/bsd/common/include/linux/list.h Mon Aug 27 06:57:44 2018 +0000
@@ -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_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_ */
Home |
Main Index |
Thread Index |
Old Index