Module Name:    src
Committed By:   riastradh
Date:           Mon Aug 27 13:56:58 UTC 2018

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

Log Message:
Define list_splice_init.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 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.17 src/sys/external/bsd/common/include/linux/list.h:1.18
--- src/sys/external/bsd/common/include/linux/list.h:1.17	Mon Aug 27 13:56:46 2018
+++ src/sys/external/bsd/common/include/linux/list.h	Mon Aug 27 13:56:58 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: list.h,v 1.17 2018/08/27 13:56:46 riastradh Exp $	*/
+/*	$NetBSD: list.h,v 1.18 2018/08/27 13:56:58 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -160,6 +160,15 @@ list_splice(const struct list_head *list
 }
 
 static inline void
+list_splice_init(struct list_head *list, struct list_head *head)
+{
+	if (!list_empty(list)) {
+		__list_splice_between(head, list, head->next);
+		INIT_LIST_HEAD(list);
+	}
+}
+
+static inline void
 list_splice_tail(const struct list_head *list, struct list_head *head)
 {
 	if (!list_empty(list))

Reply via email to