summaryrefslogtreecommitdiff
path: root/sys/external/bsd/common/include/linux
diff options
context:
space:
mode:
authorriastradh <riastradh@NetBSD.org>2021-12-19 01:19:37 +0000
committerriastradh <riastradh@NetBSD.org>2021-12-19 01:19:37 +0000
commit85368d4d735cece9d450dcc401a67e40a3306c9d (patch)
tree753ddd97b7d075e05d06466f6116494f19abd2a5 /sys/external/bsd/common/include/linux
parenta892a2773224bbffe694bb8706171616e450dd03 (diff)
Move struct list_head to <linux/types.h>.
Diffstat (limited to 'sys/external/bsd/common/include/linux')
-rw-r--r--sys/external/bsd/common/include/linux/list.h10
-rw-r--r--sys/external/bsd/common/include/linux/types.h7
2 files changed, 9 insertions, 8 deletions
diff --git a/sys/external/bsd/common/include/linux/list.h b/sys/external/bsd/common/include/linux/list.h
index cee83c488cb..737525ace4f 100644
--- a/sys/external/bsd/common/include/linux/list.h
+++ b/sys/external/bsd/common/include/linux/list.h
@@ -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 --git a/sys/external/bsd/common/include/linux/types.h b/sys/external/bsd/common/include/linux/types.h
index 8c90232445e..1e161c7a4b4 100644
--- a/sys/external/bsd/common/include/linux/types.h
+++ b/sys/external/bsd/common/include/linux/types.h
@@ -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 @@ typedef off_t loff_t;
/* 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_ */