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>
This commit is contained in:
committed by
J. Bruce Fields
parent
d842120212
commit
a254b246ee
@@ -1763,10 +1763,6 @@ out:
|
||||
return status;
|
||||
}
|
||||
|
||||
static struct workqueue_struct *laundry_wq;
|
||||
static void laundromat_main(struct work_struct *);
|
||||
static DECLARE_DELAYED_WORK(laundromat_work, laundromat_main);
|
||||
|
||||
__be32
|
||||
nfsd4_renew(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
|
||||
clientid_t *clid)
|
||||
@@ -1874,7 +1870,11 @@ nfs4_laundromat(void)
|
||||
return clientid_val;
|
||||
}
|
||||
|
||||
void
|
||||
static struct workqueue_struct *laundry_wq;
|
||||
static void laundromat_main(struct work_struct *);
|
||||
static DECLARE_DELAYED_WORK(laundromat_work, laundromat_main);
|
||||
|
||||
static void
|
||||
laundromat_main(struct work_struct *not_used)
|
||||
{
|
||||
time_t t;
|
||||
|
Reference in New Issue
Block a user