make some functions static.
This commit is contained in:
parent
bbac3fbde4
commit
62abd426b4
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: uvm_aobj.c,v 1.105 2009/01/16 02:33:14 yamt Exp $ */
|
||||
/* $NetBSD: uvm_aobj.c,v 1.106 2009/02/18 13:16:58 yamt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 Chuck Silvers, Charles D. Cranor and
|
||||
|
@ -43,7 +43,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: uvm_aobj.c,v 1.105 2009/01/16 02:33:14 yamt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: uvm_aobj.c,v 1.106 2009/02/18 13:16:58 yamt Exp $");
|
||||
|
||||
#include "opt_uvmhist.h"
|
||||
|
||||
|
@ -176,6 +176,9 @@ static int uao_get(struct uvm_object *, voff_t, struct vm_page **,
|
|||
int *, int, vm_prot_t, int, int);
|
||||
static int uao_put(struct uvm_object *, voff_t, voff_t, int);
|
||||
|
||||
static void uao_detach_locked(struct uvm_object *);
|
||||
static void uao_reference_locked(struct uvm_object *);
|
||||
|
||||
#if defined(VMSWAP)
|
||||
static struct uao_swhash_elt *uao_find_swhash_elt
|
||||
(struct uvm_aobj *, int, bool);
|
||||
|
@ -583,7 +586,7 @@ uao_reference(struct uvm_object *uobj)
|
|||
* it's already locked.
|
||||
*/
|
||||
|
||||
void
|
||||
static void
|
||||
uao_reference_locked(struct uvm_object *uobj)
|
||||
{
|
||||
UVMHIST_FUNC("uao_reference"); UVMHIST_CALLED(maphist);
|
||||
|
@ -631,7 +634,7 @@ uao_detach(struct uvm_object *uobj)
|
|||
* it's already locked.
|
||||
*/
|
||||
|
||||
void
|
||||
static void
|
||||
uao_detach_locked(struct uvm_object *uobj)
|
||||
{
|
||||
struct uvm_aobj *aobj = (struct uvm_aobj *)uobj;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: uvm_extern.h,v 1.150 2008/11/26 20:17:33 pooka Exp $ */
|
||||
/* $NetBSD: uvm_extern.h,v 1.151 2009/02/18 13:16:58 yamt Exp $ */
|
||||
|
||||
/*
|
||||
*
|
||||
|
@ -559,9 +559,7 @@ void cpu_swapout(struct lwp *);
|
|||
/* uvm_aobj.c */
|
||||
struct uvm_object *uao_create(vsize_t, int);
|
||||
void uao_detach(struct uvm_object *);
|
||||
void uao_detach_locked(struct uvm_object *);
|
||||
void uao_reference(struct uvm_object *);
|
||||
void uao_reference_locked(struct uvm_object *);
|
||||
|
||||
/* uvm_bio.c */
|
||||
void ubc_init(void);
|
||||
|
|
Loading…
Reference in New Issue