Skip to content

Commit 977294c

Browse files
author
Trond Myklebust
committed
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>
1 parent fcda3d5 commit 977294c

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

fs/nfs/nfs4proc.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@
8888
| ATTR_MTIME_SET)
8989

9090
struct nfs4_opendata;
91-
static void nfs4_layoutget_release(void *calldata);
9291
static int _nfs4_recover_proc_open(struct nfs4_opendata *data);
9392
static int nfs4_do_fsinfo(struct nfs_server *, struct nfs_fh *, struct nfs_fsinfo *);
9493
static void nfs_fixup_referral_attributes(struct nfs_fattr *fattr);
@@ -907,10 +906,6 @@ nfs4_sequence_process_interrupted(struct nfs_client *client,
907906

908907
#else /* !CONFIG_NFS_V4_1 */
909908

910-
static void nfs4_layoutget_release(void *calldata)
911-
{
912-
}
913-
914909
static int nfs4_sequence_process(struct rpc_task *task, struct nfs4_sequence_res *res)
915910
{
916911
return nfs40_sequence_done(task, res);

0 commit comments

Comments
 (0)