diff options
author | ed <ed@FreeBSD.org> | 2011-11-07 06:44:47 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2011-11-07 06:44:47 +0000 |
commit | e97eae1577f10887cddd14c0c954b3ddcf507bd6 (patch) | |
tree | 3278fb8afc568f22cc5eda0e74926191fc1857df /sys/nfs | |
parent | dcf961c021321caf2c6fda15125c85b82ec9ff04 (diff) | |
download | FreeBSD-src-e97eae1577f10887cddd14c0c954b3ddcf507bd6.zip FreeBSD-src-e97eae1577f10887cddd14c0c954b3ddcf507bd6.tar.gz |
Mark MALLOC_DEFINEs static that have no corresponding MALLOC_DECLAREs.
This means that their use is restricted to a single C file.
Diffstat (limited to 'sys/nfs')
-rw-r--r-- | sys/nfs/nfs_lock.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/nfs/nfs_lock.c b/sys/nfs/nfs_lock.c index 0aca8e9..7d11672 100644 --- a/sys/nfs/nfs_lock.c +++ b/sys/nfs/nfs_lock.c @@ -65,8 +65,9 @@ extern void (*nlminfo_release_p)(struct proc *p); vop_advlock_t *nfs_advlock_p = nfs_dolock; vop_reclaim_t *nfs_reclaim_p = NULL; -MALLOC_DEFINE(M_NFSLOCK, "nfsclient_lock", "NFS lock request"); -MALLOC_DEFINE(M_NLMINFO, "nfsclient_nlminfo", "NFS lock process structure"); +static MALLOC_DEFINE(M_NFSLOCK, "nfsclient_lock", "NFS lock request"); +static MALLOC_DEFINE(M_NLMINFO, "nfsclient_nlminfo", + "NFS lock process structure"); static int nfslockdans(struct thread *td, struct lockd_ans *ansp); static void nlminfo_release(struct proc *p); |