summaryrefslogtreecommitdiffstats
path: root/sys/uvm/uvm_object.c
diff options
context:
space:
mode:
authoroga <oga@openbsd.org>2010-05-01 13:13:08 +0000
committeroga <oga@openbsd.org>2010-05-01 13:13:08 +0000
commite6250aa7c6520b5dc50d1b95296db42b837e96b0 (patch)
tree8373c333061b291d3234f17ef0df2a0c62a32a40 /sys/uvm/uvm_object.c
parentsplit up a multiple assignment so we aren't casting an lvalue. (diff)
downloadwireguard-openbsd-e6250aa7c6520b5dc50d1b95296db42b837e96b0.tar.xz
wireguard-openbsd-e6250aa7c6520b5dc50d1b95296db42b837e96b0.zip
Unbreak ramdisks.
I forgot that uvm_object.c wasn't build if SMALL_KERNEL. Fix this by building the file unconditionally and only building the less used functions when SMALL_KERNEL is not defined. unbreaks ramdisk build. ok jsg@
Diffstat (limited to 'sys/uvm/uvm_object.c')
-rw-r--r--sys/uvm/uvm_object.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/uvm/uvm_object.c b/sys/uvm/uvm_object.c
index cc7871b8a5f..ffd76a259e5 100644
--- a/sys/uvm/uvm_object.c
+++ b/sys/uvm/uvm_object.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_object.c,v 1.5 2010/04/30 21:56:39 oga Exp $ */
+/* $OpenBSD: uvm_object.c,v 1.6 2010/05/01 13:13:10 oga Exp $ */
/*
* Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -54,6 +54,7 @@ uvm_objinit(struct uvm_object *uobj, struct uvm_pagerops *pgops, int refs)
uobj->uo_refs = refs;
}
+#ifndef SMALL_KERNEL
/*
* uvm_objwire: wire the pages of entire uobj
*
@@ -168,3 +169,4 @@ uvm_objunwire(struct uvm_object *uobj, off_t start, off_t end)
uvm_unlock_pageq();
simple_unlock(&uobj->vmobjlock);
}
+#endif /* !SMALL_KERNEL */