summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/uvm/uvm_object.c7
-rw-r--r--sys/uvm/uvm_object.h3
2 files changed, 8 insertions, 2 deletions
diff --git a/sys/uvm/uvm_object.c b/sys/uvm/uvm_object.c
index 872acb9ddc9..20b57df0a97 100644
--- a/sys/uvm/uvm_object.c
+++ b/sys/uvm/uvm_object.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_object.c,v 1.20 2021/09/05 11:44:46 mpi Exp $ */
+/* $OpenBSD: uvm_object.c,v 1.21 2021/10/12 18:16:51 kettenis Exp $ */
/*
* Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -66,6 +66,11 @@ uvm_obj_init(struct uvm_object *uobj, const struct uvm_pagerops *pgops, int refs
uobj->uo_refs = refs;
}
+void
+uvm_obj_destroy(struct uvm_object *uo)
+{
+}
+
#ifndef SMALL_KERNEL
/*
* uvm_obj_wire: wire the pages of entire uobj
diff --git a/sys/uvm/uvm_object.h b/sys/uvm/uvm_object.h
index 9d32d2022cb..9a74600c9df 100644
--- a/sys/uvm/uvm_object.h
+++ b/sys/uvm/uvm_object.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_object.h,v 1.27 2021/09/05 11:44:46 mpi Exp $ */
+/* $OpenBSD: uvm_object.h,v 1.28 2021/10/12 18:16:51 kettenis Exp $ */
/* $NetBSD: uvm_object.h,v 1.11 2001/03/09 01:02:12 chs Exp $ */
/*
@@ -101,6 +101,7 @@ RBT_PROTOTYPE(uvm_objtree, vm_page, objt, uvm_pagecmp)
((uobj)->pgops == &bufcache_pager)
void uvm_obj_init(struct uvm_object *, const struct uvm_pagerops *, int);
+void uvm_obj_destroy(struct uvm_object *);
int uvm_obj_wire(struct uvm_object *, voff_t, voff_t, struct pglist *);
void uvm_obj_unwire(struct uvm_object *, voff_t, voff_t);
void uvm_obj_free(struct uvm_object *);