diff options
author | ed <ed@FreeBSD.org> | 2011-11-07 15:43:11 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2011-11-07 15:43:11 +0000 |
commit | 0c56cf839d3e773173db46a972d3792e8a36820d (patch) | |
tree | bf1175813c8ae55dc563480a7eadad2ffae50256 /sys/fs | |
parent | 599a401646fe914e6aca992bf3d53f0d7b937253 (diff) | |
download | FreeBSD-src-0c56cf839d3e773173db46a972d3792e8a36820d.zip FreeBSD-src-0c56cf839d3e773173db46a972d3792e8a36820d.tar.gz |
Mark all SYSCTL_NODEs static that have no corresponding SYSCTL_DECLs.
The SYSCTL_NODE macro defines a list that stores all child-elements of
that node. If there's no SYSCTL_DECL macro anywhere else, there's no
reason why it shouldn't be static.
Diffstat (limited to 'sys/fs')
-rw-r--r-- | sys/fs/ext2fs/ext2_alloc.c | 2 | ||||
-rw-r--r-- | sys/fs/pseudofs/pseudofs_vncache.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/ext2fs/ext2_alloc.c b/sys/fs/ext2fs/ext2_alloc.c index 635a6e2..2f19b87 100644 --- a/sys/fs/ext2fs/ext2_alloc.c +++ b/sys/fs/ext2fs/ext2_alloc.c @@ -151,7 +151,7 @@ nospace: */ #ifdef FANCY_REALLOC -SYSCTL_NODE(_vfs, OID_AUTO, ext2fs, CTLFLAG_RW, 0, "EXT2FS filesystem"); +static SYSCTL_NODE(_vfs, OID_AUTO, ext2fs, CTLFLAG_RW, 0, "EXT2FS filesystem"); static int doasyncfree = 1; SYSCTL_INT(_vfs_ext2fs, OID_AUTO, doasyncfree, CTLFLAG_RW, &doasyncfree, 0, diff --git a/sys/fs/pseudofs/pseudofs_vncache.c b/sys/fs/pseudofs/pseudofs_vncache.c index 19cc70d..41a9c35 100644 --- a/sys/fs/pseudofs/pseudofs_vncache.c +++ b/sys/fs/pseudofs/pseudofs_vncache.c @@ -52,7 +52,7 @@ static struct pfs_vdata *pfs_vncache; static eventhandler_tag pfs_exit_tag; static void pfs_exit(void *arg, struct proc *p); -SYSCTL_NODE(_vfs_pfs, OID_AUTO, vncache, CTLFLAG_RW, 0, +static SYSCTL_NODE(_vfs_pfs, OID_AUTO, vncache, CTLFLAG_RW, 0, "pseudofs vnode cache"); static int pfs_vncache_entries; |