summaryrefslogtreecommitdiffstats
path: root/sys/fs
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2000-12-08 15:07:24 +0000
committerphk <phk@FreeBSD.org>2000-12-08 15:07:24 +0000
commite0196ec99c11e2ccb27caac50a1e5c2b4dd4934a (patch)
tree3dfa00acf48dc36aaa01b12df62d35f64591a742 /sys/fs
parent0b006e1592bdf4d5125ac5c418594a719e56d04e (diff)
downloadFreeBSD-src-e0196ec99c11e2ccb27caac50a1e5c2b4dd4934a.zip
FreeBSD-src-e0196ec99c11e2ccb27caac50a1e5c2b4dd4934a.tar.gz
staticize.
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/devfs/devfs.h2
-rw-r--r--sys/fs/devfs/devfs_devs.c7
-rw-r--r--sys/fs/devfs/devfs_vnops.c4
3 files changed, 7 insertions, 6 deletions
diff --git a/sys/fs/devfs/devfs.h b/sys/fs/devfs/devfs.h
index 12c4e65..3d567ba 100644
--- a/sys/fs/devfs/devfs.h
+++ b/sys/fs/devfs/devfs.h
@@ -105,8 +105,6 @@ extern vop_t **devfs_vnodeop_p;
extern vop_t **devfs_specop_p;
int devfs_allocv (struct devfs_dirent *de, struct mount *mp, struct vnode **vpp, struct proc *p);
-void devfs_attemptoverflow(int insist);
-struct devfs_dirent *devfs_find (struct devfs_dirent *dd, const char *name, int namelen);
dev_t *devfs_itod (int inode);
struct devfs_dirent **devfs_itode (struct devfs_mount *dm, int inode);
int devfs_populate (struct devfs_mount *dm);
diff --git a/sys/fs/devfs/devfs_devs.c b/sys/fs/devfs/devfs_devs.c
index 85e25f7..ee4697d 100644
--- a/sys/fs/devfs/devfs_devs.c
+++ b/sys/fs/devfs/devfs_devs.c
@@ -56,6 +56,9 @@ static int devfs_noverflowwant = NDEVFSOVERFLOW;
static int devfs_noverflow;
static unsigned devfs_generation;
+static void devfs_attemptoverflow(int insist);
+static struct devfs_dirent *devfs_find (struct devfs_dirent *dd, const char *name, int namelen);
+
SYSCTL_NODE(_vfs, OID_AUTO, devfs, CTLFLAG_RW, 0, "DEVFS filesystem");
SYSCTL_UINT(_vfs_devfs, OID_AUTO, noverflow, CTLFLAG_RW,
&devfs_noverflowwant, 0, "Size of DEVFS overflow table");
@@ -132,7 +135,7 @@ devfs_itod (int inode)
return (NULL);
}
-void
+static void
devfs_attemptoverflow(int insist)
{
dev_t **ot;
@@ -171,7 +174,7 @@ bail:
return;
}
-struct devfs_dirent *
+static struct devfs_dirent *
devfs_find(struct devfs_dirent *dd, const char *name, int namelen)
{
struct devfs_dirent *de;
diff --git a/sys/fs/devfs/devfs_vnops.c b/sys/fs/devfs/devfs_vnops.c
index fd74abd..fad4ec7 100644
--- a/sys/fs/devfs/devfs_vnops.c
+++ b/sys/fs/devfs/devfs_vnops.c
@@ -660,7 +660,7 @@ devfs_badop()
return (EIO);
}
-vop_t **devfs_vnodeop_p;
+static vop_t **devfs_vnodeop_p;
static struct vnodeopv_entry_desc devfs_vnodeop_entries[] = {
{ &vop_default_desc, (vop_t *) vop_defaultop },
{ &vop_access_desc, (vop_t *) devfs_access },
@@ -697,7 +697,7 @@ foo(ap)
}
#endif
-vop_t **devfs_specop_p;
+static vop_t **devfs_specop_p;
static struct vnodeopv_entry_desc devfs_specop_entries[] = {
#if 1
{ &vop_default_desc, (vop_t *) spec_vnoperate },
OpenPOWER on IntegriCloud