Put the extern decl of uvm_vnodeops in uvm_object.h

This commit is contained in:
thorpej 2001-01-28 22:23:04 +00:00
parent f8c082d5a5
commit 1cdff48674
2 changed files with 8 additions and 4 deletions

View File

@ -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) \ #define UVM_OBJ_IS_INTRSAFE_OBJECT(uobj) \
((uobj)->uo_refs == UVM_OBJ_KERN_INTRSAFE) ((uobj)->uo_refs == UVM_OBJ_KERN_INTRSAFE)
#ifdef _KERNEL
extern struct uvm_pagerops uvm_vnodeops;
#define UVM_OBJ_IS_VNODE(uobj) \ #define UVM_OBJ_IS_VNODE(uobj) \
((uobj)->pgops == &uvm_vnodeops) ((uobj)->pgops == &uvm_vnodeops)
#endif /* _KERNEL */
#endif /* _UVM_UVM_OBJECT_H_ */ #endif /* _UVM_UVM_OBJECT_H_ */

View File

@ -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. * 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; boolean_t vm_page_zero_enable = FALSE;
extern struct uvm_pagerops uvm_vnodeops;
/* /*
* local variables * local variables
*/ */