mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-24 07:31:41 +00:00
NFS: Fix a number of sparse warnings
Fix a number of "warning: symbol 'foo' was not declared. Should it be static?" conditions. Fix 2 cases of "warning: Using plain integer as NULL pointer" fs/nfs/delegation.c:263:31: warning: restricted fmode_t degrades to integer - We want to allow upgrades to a WRITE delegation, but should otherwise consider servers that hand out duplicate delegations to be borken. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
5ffaf85541
commit
17280175c5
13 changed files with 38 additions and 33 deletions
|
@ -101,7 +101,7 @@ nfs4_callback_svc(void *vrqstp)
|
|||
/*
|
||||
* Prepare to bring up the NFSv4 callback service
|
||||
*/
|
||||
struct svc_rqst *
|
||||
static struct svc_rqst *
|
||||
nfs4_callback_up(struct svc_serv *serv, struct rpc_xprt *xprt)
|
||||
{
|
||||
int ret;
|
||||
|
@ -172,7 +172,7 @@ nfs41_callback_svc(void *vrqstp)
|
|||
/*
|
||||
* Bring up the NFSv4.1 callback service
|
||||
*/
|
||||
struct svc_rqst *
|
||||
static struct svc_rqst *
|
||||
nfs41_callback_up(struct svc_serv *serv, struct rpc_xprt *xprt)
|
||||
{
|
||||
struct svc_rqst *rqstp;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue