diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-02-20 15:49:00 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2008-04-23 16:13:39 -0400 |
commit | a254b246ee238ab90e7b3fae1f76875b608b2213 (patch) | |
tree | 1e4c35e1225b91693694d0384ef6f1e0e8500e4d /include/linux | |
parent | d8421202121ce74daf4625ca9d1d825bbd7ce66a (diff) |
nfsd: fix sparse warnings
Add extern to nfsd/nfsd.h
fs/nfsd/nfssvc.c:146:5: warning: symbol 'nfsd_nrthreads' was not declared. Should it be static?
fs/nfsd/nfssvc.c:261:5: warning: symbol 'nfsd_nrpools' was not declared. Should it be static?
fs/nfsd/nfssvc.c:269:5: warning: symbol 'nfsd_get_nrthreads' was not declared. Should it be static?
fs/nfsd/nfssvc.c:281:5: warning: symbol 'nfsd_set_nrthreads' was not declared. Should it be static?
fs/nfsd/export.c:1534:23: warning: symbol 'nfs_exports_op' was not declared. Should it be static?
Add include of auth.h
fs/nfsd/auth.c:27:5: warning: symbol 'nfsd_setuser' was not declared. Should it be static?
Make static, move forward declaration closer to where it's needed.
fs/nfsd/nfs4state.c:1877:1: warning: symbol 'laundromat_main' was not declared. Should it be static?
Make static, forward declaration was already marked static.
fs/nfsd/nfs4idmap.c:206:1: warning: symbol 'idtoname_parse' was not declared. Should it be static?
fs/nfsd/vfs.c:1156:1: warning: symbol 'nfsd_create_setattr' was not declared. Should it be static?
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/nfsd/nfsd.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/nfsd/nfsd.h b/include/linux/nfsd/nfsd.h index 8caf4c4f64e6..f4de14d903a6 100644 --- a/include/linux/nfsd/nfsd.h +++ b/include/linux/nfsd/nfsd.h | |||
@@ -56,12 +56,20 @@ extern struct svc_program nfsd_program; | |||
56 | extern struct svc_version nfsd_version2, nfsd_version3, | 56 | extern struct svc_version nfsd_version2, nfsd_version3, |
57 | nfsd_version4; | 57 | nfsd_version4; |
58 | extern struct svc_serv *nfsd_serv; | 58 | extern struct svc_serv *nfsd_serv; |
59 | |||
60 | extern struct seq_operations nfs_exports_op; | ||
61 | |||
59 | /* | 62 | /* |
60 | * Function prototypes. | 63 | * Function prototypes. |
61 | */ | 64 | */ |
62 | int nfsd_svc(unsigned short port, int nrservs); | 65 | int nfsd_svc(unsigned short port, int nrservs); |
63 | int nfsd_dispatch(struct svc_rqst *rqstp, __be32 *statp); | 66 | int nfsd_dispatch(struct svc_rqst *rqstp, __be32 *statp); |
64 | 67 | ||
68 | int nfsd_nrthreads(void); | ||
69 | int nfsd_nrpools(void); | ||
70 | int nfsd_get_nrthreads(int n, int *); | ||
71 | int nfsd_set_nrthreads(int n, int *); | ||
72 | |||
65 | /* nfsd/vfs.c */ | 73 | /* nfsd/vfs.c */ |
66 | int fh_lock_parent(struct svc_fh *, struct dentry *); | 74 | int fh_lock_parent(struct svc_fh *, struct dentry *); |
67 | int nfsd_racache_init(int); | 75 | int nfsd_racache_init(int); |