summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/uvm/uvm_addr.c3
-rw-r--r--sys/uvm/uvm_extern.h6
-rw-r--r--sys/uvm/uvm_object.c3
3 files changed, 8 insertions, 4 deletions
diff --git a/sys/uvm/uvm_addr.c b/sys/uvm/uvm_addr.c
index a5e4a644e0a..7d3ac99b952 100644
--- a/sys/uvm/uvm_addr.c
+++ b/sys/uvm/uvm_addr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_addr.c,v 1.27 2018/05/16 09:02:11 otto Exp $ */
+/* $OpenBSD: uvm_addr.c,v 1.28 2020/09/13 10:05:25 mpi Exp $ */
/*
* Copyright (c) 2011 Ariane van der Steldt <ariane@stack.nl>
@@ -19,6 +19,7 @@
/* #define DEBUG */
#include <sys/param.h>
+#include <sys/systm.h>
#include <uvm/uvm.h>
#include <uvm/uvm_addr.h>
#include <sys/pool.h>
diff --git a/sys/uvm/uvm_extern.h b/sys/uvm/uvm_extern.h
index 7bc4417d9e6..b27ef08ca76 100644
--- a/sys/uvm/uvm_extern.h
+++ b/sys/uvm/uvm_extern.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_extern.h,v 1.152 2019/12/12 11:12:36 mpi Exp $ */
+/* $OpenBSD: uvm_extern.h,v 1.153 2020/09/13 10:05:25 mpi Exp $ */
/* $NetBSD: uvm_extern.h,v 1.57 2001/03/09 01:02:12 chs Exp $ */
/*
@@ -451,12 +451,14 @@ int uvm_coredump_walkmap(struct proc *_p,
uvm_coredump_setup_cb *_setup,
uvm_coredump_walk_cb *_walk, void *_cookie);
void uvm_grow(struct proc *, vaddr_t);
-struct uvm_object *uvn_attach(struct vnode *, vm_prot_t);
void uvm_pagezero_thread(void *);
void kmeminit_nkmempages(void);
void kmeminit(void);
extern u_int nkmempages;
+struct vnode;
+struct uvm_object *uvn_attach(struct vnode *, vm_prot_t);
+
struct process;
struct kinfo_vmentry;
int fill_vmmap(struct process *, struct kinfo_vmentry *,
diff --git a/sys/uvm/uvm_object.c b/sys/uvm/uvm_object.c
index 8fef418bd35..cf54d258bbf 100644
--- a/sys/uvm/uvm_object.c
+++ b/sys/uvm/uvm_object.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_object.c,v 1.15 2019/11/29 22:10:04 beck Exp $ */
+/* $OpenBSD: uvm_object.c,v 1.16 2020/09/13 10:05:25 mpi Exp $ */
/*
* Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -35,6 +35,7 @@
*/
#include <sys/param.h>
+#include <sys/systm.h>
#include <sys/mman.h>
#include <sys/atomic.h>