Module Name:    src
Committed By:   riastradh
Date:           Sun Dec 19 01:44:41 UTC 2021

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

Log Message:
__list_del_entry, and poison list_del.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 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.20 src/sys/external/bsd/common/include/linux/list.h:1.21
--- src/sys/external/bsd/common/include/linux/list.h:1.20	Sun Dec 19 01:19:37 2021
+++ src/sys/external/bsd/common/include/linux/list.h	Sun Dec 19 01:44:41 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: list.h,v 1.20 2021/12/19 01:19:37 riastradh Exp $	*/
+/*	$NetBSD: list.h,v 1.21 2021/12/19 01:44:41 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -130,13 +130,21 @@ list_add_tail(struct list_head *node, st
 }
 
 static inline void
-list_del(struct list_head *entry)
+__list_del_entry(struct list_head *entry)
 {
 	entry->prev->next = entry->next;
 	entry->next->prev = entry->prev;
 }
 
 static inline void
+list_del(struct list_head *entry)
+{
+	__list_del_entry(entry);
+	entry->next = (void *)(uintptr_t)1;
+	entry->prev = (void *)(uintptr_t)2;
+}
+
+static inline void
 __list_splice_between(struct list_head *prev, const struct list_head *list,
     struct list_head *next)
 {

Reply via email to