NFS: Fix a number of sparse warnings
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 11 Mar 2012 17:11:00 +0000 (13:11 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 11 Mar 2012 19:14:16 +0000 (15:14 -0400)
commit17280175c587469b34757263c7cfc608f0ea2334
tree34a3008bfd1055e9fdb0557ea563484b67433797
parent5ffaf8554163d9f3873988ce2f9977f6c6f408d2
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>
13 files changed:
fs/nfs/callback.c
fs/nfs/client.c
fs/nfs/delegation.c
fs/nfs/dns_resolve.c
fs/nfs/idmap.c
fs/nfs/nfs3acl.c
fs/nfs/nfs4filelayout.c
fs/nfs/nfs4filelayoutdev.c
fs/nfs/nfs4proc.c
fs/nfs/nfs4state.c
fs/nfs/objlayout/objlayout.c
fs/nfs/pnfs_dev.c
fs/nfs/unlink.c