summaryrefslogtreecommitdiff
path: root/sys/external/bsd/common/include/linux
diff options
context:
space:
mode:
authorriastradh <riastradh@NetBSD.org>2020-02-14 04:38:48 +0000
committerriastradh <riastradh@NetBSD.org>2020-02-14 04:38:48 +0000
commitaa66f76b68d6ea5210fa77a426b8736a1f48e99b (patch)
tree0e7892fa15e57c7c85c2bbc04fcc9281397ecd22 /sys/external/bsd/common/include/linux
parent9b4f83d02bf01fc47e1ef1bbd392c14a7dd4303d (diff)
Add LIST_HEAD to <linux/nbsd-namespace.h> too.
Diffstat (limited to 'sys/external/bsd/common/include/linux')
-rw-r--r--sys/external/bsd/common/include/linux/list.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/external/bsd/common/include/linux/list.h b/sys/external/bsd/common/include/linux/list.h
index 5d3c31c2111..cee83c488cb 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.18 2018/08/27 13:56:58 riastradh Exp $ */
+/* $NetBSD: list.h,v 1.19 2020/02/14 04:38:48 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -61,6 +61,8 @@ struct list_head {
#define LIST_HEAD_INIT(name) { .prev = &(name), .next = &(name) }
+#define LINUX_LIST_HEAD(name) struct list_head name = LIST_HEAD_INIT(name)
+
static inline void
INIT_LIST_HEAD(struct list_head *head)
{