Module Name:    src
Committed By:   riastradh
Date:           Mon Aug 27 06:51:38 UTC 2018

Modified Files:
        src/sys/external/bsd/common/include/linux: list.h

Log Message:
Fix hlist_for_each_entry to use the specified field.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 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.7 src/sys/external/bsd/common/include/linux/list.h:1.8
--- src/sys/external/bsd/common/include/linux/list.h:1.7	Mon Aug 27 06:50:03 2018
+++ src/sys/external/bsd/common/include/linux/list.h	Mon Aug 27 06:51:38 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: list.h,v 1.7 2018/08/27 06:50:03 riastradh Exp $	*/
+/*	$NetBSD: list.h,v 1.8 2018/08/27 06:51:38 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -297,7 +297,8 @@ hlist_del_init(struct hlist_node *node)
 			    FIELD));					      \
 		(VAR) != NULL;						      \
 		(VAR) = (hlist_next(VAR) == NULL ? NULL :		      \
-			hlist_entry(hlist_next(VAR), typeof(*(VAR)), FIELD)))
+			hlist_entry(hlist_next(&(VAR)->FIELD), typeof(*(VAR)),\
+			    FIELD)))
 
 #define	hlist_for_each_entry_safe(VAR, NEXT, HEAD, FIELD)		      \
 	for ((VAR) = (hlist_first(HEAD) == NULL ? NULL :		      \

Reply via email to