summaryrefslogtreecommitdiff
path: root/sys/tmpfs
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2020-10-12 13:08:04 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2020-10-12 13:08:04 +0000
commit5a3dd4ab19b15ffe307f593a9e0a8c000e0fb22a (patch)
treebe72efaeb4210af343e03e59a0976ed4859d80bb /sys/tmpfs
parent9a0dfff3f8a48c58e67bcb4d353e8a7abdde9a29 (diff)
Fix build of tmpfs
The breakage was caused by the removal of #include <sys/systm.h> from <uvm/uvm_map.h>. OK deraadt@, mpi@, beck@
Diffstat (limited to 'sys/tmpfs')
-rw-r--r--sys/tmpfs/tmpfs.h4
-rw-r--r--sys/tmpfs/tmpfs_vnops.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/sys/tmpfs/tmpfs.h b/sys/tmpfs/tmpfs.h
index 0c5b1583327..36a20a29267 100644
--- a/sys/tmpfs/tmpfs.h
+++ b/sys/tmpfs/tmpfs.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmpfs.h,v 1.9 2019/01/21 18:09:21 anton Exp $ */
+/* $OpenBSD: tmpfs.h,v 1.10 2020/10/12 13:08:03 visa Exp $ */
/* $NetBSD: tmpfs.h,v 1.45 2011/09/27 01:10:43 christos Exp $ */
/*
@@ -172,6 +172,8 @@ typedef struct tmpfs_node {
#if defined(_KERNEL)
+#include <lib/libkern/libkern.h> /* for KASSERT() */
+
LIST_HEAD(tmpfs_node_list, tmpfs_node);
diff --git a/sys/tmpfs/tmpfs_vnops.c b/sys/tmpfs/tmpfs_vnops.c
index 29a9cb4a386..878eb39be22 100644
--- a/sys/tmpfs/tmpfs_vnops.c
+++ b/sys/tmpfs/tmpfs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmpfs_vnops.c,v 1.43 2020/07/15 07:27:07 gerhard Exp $ */
+/* $OpenBSD: tmpfs_vnops.c,v 1.44 2020/10/12 13:08:03 visa Exp $ */
/* $NetBSD: tmpfs_vnops.c,v 1.100 2012/11/05 17:27:39 dholland Exp $ */
/*
@@ -37,6 +37,7 @@
*/
#include <sys/param.h>
+#include <sys/systm.h>
#include <sys/fcntl.h>
#include <sys/event.h>
#include <sys/namei.h>