aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd
diff options
context:
space:
mode:
authorDaniel Mack <zonque@gmail.com>2011-05-16 10:38:14 -0400
committerJ. Bruce Fields <bfields@redhat.com>2011-05-18 15:28:31 -0400
commitc47d832bc0155153920e507f075647519bad09a2 (patch)
tree3ec53c2ac4f398d046d0bcf8409db7630a9b473e /fs/nfsd
parent6ce2357f1e73e0da8ebeace6ec829f48a646bb8c (diff)
nfsd: make local functions static
This also fixes a number of sparse warnings. Signed-off-by: Daniel Mack <zonque@gmail.com> Cc: Trond Myklebust <Trond.Myklebust@netapp.com> Cc: J. Bruce Fields <bfields@fieldses.org> Cc: Neil Brown <neilb@suse.de> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd')
-rw-r--r--fs/nfsd/nfs3xdr.c2
-rw-r--r--fs/nfsd/nfs4state.c4
-rw-r--r--fs/nfsd/nfs4xdr.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/fs/nfsd/nfs3xdr.c b/fs/nfsd/nfs3xdr.c
index 7e84a852cdae..291f2d2551b3 100644
--- a/fs/nfsd/nfs3xdr.c
+++ b/fs/nfsd/nfs3xdr.c
@@ -842,7 +842,7 @@ out:
842 return rv; 842 return rv;
843} 843}
844 844
845__be32 *encode_entryplus_baggage(struct nfsd3_readdirres *cd, __be32 *p, const char *name, int namlen) 845static __be32 *encode_entryplus_baggage(struct nfsd3_readdirres *cd, __be32 *p, const char *name, int namlen)
846{ 846{
847 struct svc_fh fh; 847 struct svc_fh fh;
848 int err; 848 int err;
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index a2ea14f40b42..a8e4e91587ab 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -2482,7 +2482,7 @@ find_delegation_file(struct nfs4_file *fp, stateid_t *stid)
2482 return NULL; 2482 return NULL;
2483} 2483}
2484 2484
2485int share_access_to_flags(u32 share_access) 2485static int share_access_to_flags(u32 share_access)
2486{ 2486{
2487 share_access &= ~NFS4_SHARE_WANT_MASK; 2487 share_access &= ~NFS4_SHARE_WANT_MASK;
2488 2488
@@ -2902,7 +2902,7 @@ out:
2902 return status; 2902 return status;
2903} 2903}
2904 2904
2905struct lock_manager nfsd4_manager = { 2905static struct lock_manager nfsd4_manager = {
2906}; 2906};
2907 2907
2908static void 2908static void
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c
index 195a91d9405b..990181103214 100644
--- a/fs/nfsd/nfs4xdr.c
+++ b/fs/nfsd/nfs4xdr.c
@@ -3115,7 +3115,7 @@ nfsd4_encode_destroy_session(struct nfsd4_compoundres *resp, int nfserr,
3115 return nfserr; 3115 return nfserr;
3116} 3116}
3117 3117
3118__be32 3118static __be32
3119nfsd4_encode_sequence(struct nfsd4_compoundres *resp, int nfserr, 3119nfsd4_encode_sequence(struct nfsd4_compoundres *resp, int nfserr,
3120 struct nfsd4_sequence *seq) 3120 struct nfsd4_sequence *seq)
3121{ 3121{