From 1cdff486740d97be114f51805e0585aa3f6a9ded Mon Sep 17 00:00:00 2001 From: thorpej Date: Sun, 28 Jan 2001 22:23:04 +0000 Subject: [PATCH] Put the extern decl of uvm_vnodeops in uvm_object.h --- sys/uvm/uvm_object.h | 8 +++++++- sys/uvm/uvm_page.c | 4 +--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/sys/uvm/uvm_object.h b/sys/uvm/uvm_object.h index 4e75b7b86df6..9e9d1741cd3a 100644 --- a/sys/uvm/uvm_object.h +++ b/sys/uvm/uvm_object.h @@ -1,4 +1,4 @@ -/* $NetBSD: uvm_object.h,v 1.9 2001/01/28 22:14:28 thorpej Exp $ */ +/* $NetBSD: uvm_object.h,v 1.10 2001/01/28 22:23:06 thorpej Exp $ */ /* * @@ -82,7 +82,13 @@ struct uvm_object { #define UVM_OBJ_IS_INTRSAFE_OBJECT(uobj) \ ((uobj)->uo_refs == UVM_OBJ_KERN_INTRSAFE) +#ifdef _KERNEL + +extern struct uvm_pagerops uvm_vnodeops; + #define UVM_OBJ_IS_VNODE(uobj) \ ((uobj)->pgops == &uvm_vnodeops) +#endif /* _KERNEL */ + #endif /* _UVM_UVM_OBJECT_H_ */ diff --git a/sys/uvm/uvm_page.c b/sys/uvm/uvm_page.c index cab3072fe6ec..ece09004a10a 100644 --- a/sys/uvm/uvm_page.c +++ b/sys/uvm/uvm_page.c @@ -1,4 +1,4 @@ -/* $NetBSD: uvm_page.c,v 1.49 2001/01/28 22:14:52 thorpej Exp $ */ +/* $NetBSD: uvm_page.c,v 1.50 2001/01/28 22:23:04 thorpej Exp $ */ /* * Copyright (c) 1997 Charles D. Cranor and Washington University. @@ -103,8 +103,6 @@ int vm_nphysseg = 0; /* XXXCDC: uvm.nphysseg */ */ boolean_t vm_page_zero_enable = FALSE; -extern struct uvm_pagerops uvm_vnodeops; - /* * local variables */