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 Move struct list_head ...



details:   https://anonhg.NetBSD.org/src/rev/90fe9edaa06b
branches:  trunk
changeset: 1027942:90fe9edaa06b
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 01:19:37 2021 +0000

description:
Move struct list_head to <linux/types.h>.

diffstat:

 sys/external/bsd/common/include/linux/list.h  |  10 +++-------
 sys/external/bsd/common/include/linux/types.h |   7 ++++++-
 2 files changed, 9 insertions(+), 8 deletions(-)

diffs (47 lines):

diff -r d38ac8ef0bba -r 90fe9edaa06b sys/external/bsd/common/include/linux/list.h
--- a/sys/external/bsd/common/include/linux/list.h      Sun Dec 19 01:19:30 2021 +0000
+++ b/sys/external/bsd/common/include/linux/list.h      Sun Dec 19 01:19:37 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: list.h,v 1.19 2020/02/14 04:38:48 riastradh Exp $      */
+/*     $NetBSD: list.h,v 1.20 2021/12/19 01:19:37 riastradh Exp $      */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -49,16 +49,12 @@
 #include <sys/queue.h>
 
 #include <linux/kernel.h>
+#include <linux/types.h>
 
 /*
- * Doubly-linked lists.
+ * Doubly-linked lists.  Type defined in <linux/types.h>.
  */
 
-struct list_head {
-       struct list_head *prev;
-       struct list_head *next;
-};
-
 #define        LIST_HEAD_INIT(name)    { .prev = &(name), .next = &(name) }
 
 #define        LINUX_LIST_HEAD(name)   struct list_head name = LIST_HEAD_INIT(name)
diff -r d38ac8ef0bba -r 90fe9edaa06b sys/external/bsd/common/include/linux/types.h
--- a/sys/external/bsd/common/include/linux/types.h     Sun Dec 19 01:19:30 2021 +0000
+++ b/sys/external/bsd/common/include/linux/types.h     Sun Dec 19 01:19:37 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: types.h,v 1.1 2021/12/19 01:19:30 riastradh Exp $      */
+/*     $NetBSD: types.h,v 1.2 2021/12/19 01:19:37 riastradh Exp $      */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -95,4 +95,9 @@
 /* Definition copied in <linux/kernel.h> for convenience.  */
 #define        __user
 
+struct list_head {
+       struct list_head *prev;
+       struct list_head *next;
+};
+
 #endif  /* _LINUX_TYPES_H_ */



Home | Main Index | Thread Index | Old Index