diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2018-06-05 10:38:39 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2018-06-05 10:38:39 -0400 |
commit | 977294c7199ed84d4878a63781a67014e1f0efe8 (patch) | |
tree | 35312e45a0afcb5529819c732a99c30a1b911288 /fs/nfs | |
parent | fcda3d5d221bbfc469415b0fa7dc4eb87d90d955 (diff) | |
download | op-kernel-dev-977294c7199ed84d4878a63781a67014e1f0efe8.zip op-kernel-dev-977294c7199ed84d4878a63781a67014e1f0efe8.tar.gz |
NFSv4: Fix a compiler warning when CONFIG_NFS_V4_1 is undefined
Fix a compiler warning:
fs/nfs/nfs4proc.c:910:13: warning: 'nfs4_layoutget_release' defined but not used [-Wunused-function]
static void nfs4_layoutget_release(void *calldata)
^~~~~~~~~~~~~~~~~~~~~~
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/nfs4proc.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index f413d0c..e799877 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -88,7 +88,6 @@ | ATTR_MTIME_SET) struct nfs4_opendata; -static void nfs4_layoutget_release(void *calldata); static int _nfs4_recover_proc_open(struct nfs4_opendata *data); static int nfs4_do_fsinfo(struct nfs_server *, struct nfs_fh *, struct nfs_fsinfo *); static void nfs_fixup_referral_attributes(struct nfs_fattr *fattr); @@ -907,10 +906,6 @@ nfs4_sequence_process_interrupted(struct nfs_client *client, #else /* !CONFIG_NFS_V4_1 */ -static void nfs4_layoutget_release(void *calldata) -{ -} - static int nfs4_sequence_process(struct rpc_task *task, struct nfs4_sequence_res *res) { return nfs40_sequence_done(task, res); |