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
@@ -150,7 +150,6 @@ static const struct file_operations transaction_ops = {
|
||||
.release = simple_transaction_release,
|
||||
};
|
||||
|
||||
extern struct seq_operations nfs_exports_op;
|
||||
static int exports_open(struct inode *inode, struct file *file)
|
||||
{
|
||||
return seq_open(file, &nfs_exports_op);
|
||||
@@ -358,8 +357,6 @@ static ssize_t write_filehandle(struct file *file, char *buf, size_t size)
|
||||
return mesg - buf;
|
||||
}
|
||||
|
||||
extern int nfsd_nrthreads(void);
|
||||
|
||||
static ssize_t write_threads(struct file *file, char *buf, size_t size)
|
||||
{
|
||||
/* if size > 0, look for a number of threads and call nfsd_svc
|
||||
@@ -382,10 +379,6 @@ static ssize_t write_threads(struct file *file, char *buf, size_t size)
|
||||
return strlen(buf);
|
||||
}
|
||||
|
||||
extern int nfsd_nrpools(void);
|
||||
extern int nfsd_get_nrthreads(int n, int *);
|
||||
extern int nfsd_set_nrthreads(int n, int *);
|
||||
|
||||
static ssize_t write_pool_threads(struct file *file, char *buf, size_t size)
|
||||
{
|
||||
/* if size > 0, look for an array of number of threads per node
|
||||
|
Reference in New Issue
Block a user