summaryrefslogtreecommitdiffstats
path: root/fs/nfsd
diff options
context:
space:
mode:
authorStefan Agner <stefan@agner.ch>2018-03-19 23:37:05 +0100
committerJ. Bruce Fields <bfields@redhat.com>2018-04-03 15:08:08 -0400
commit47299f79ea4742b191931ffc33cde2401a9792e4 (patch)
tree9061a8d64cae2f9b203ace1a8af4260146fcf195 /fs/nfsd
parent51d87bc2bfa7ff5381941654738540fb23cc5f6a (diff)
downloadlinux-stable-47299f79ea4742b191931ffc33cde2401a9792e4.tar.gz
linux-stable-47299f79ea4742b191931ffc33cde2401a9792e4.tar.bz2
linux-stable-47299f79ea4742b191931ffc33cde2401a9792e4.zip
nfsd: use correct enum type in decode_cb_op_status
Use enum nfs_cb_opnum4 in decode_cb_op_status. This fixes warnings seen with clang: fs/nfsd/nfs4callback.c:451:36: warning: implicit conversion from enumeration type 'enum nfs_cb_opnum4' to different enumeration type 'enum nfs_opnum4' [-Wenum-conversion] status = decode_cb_op_status(xdr, OP_CB_SEQUENCE, &cb->cb_seq_status); ~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~ Signed-off-by: Stefan Agner <stefan@agner.ch> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd')
-rw-r--r--fs/nfsd/nfs4callback.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c
index 49b0a9e7ff18..1f04d2a70d25 100644
--- a/fs/nfsd/nfs4callback.c
+++ b/fs/nfsd/nfs4callback.c
@@ -223,8 +223,8 @@ static int nfs_cb_stat_to_errno(int status)
return -status;
}
-static int decode_cb_op_status(struct xdr_stream *xdr, enum nfs_opnum4 expected,
- int *status)
+static int decode_cb_op_status(struct xdr_stream *xdr,
+ enum nfs_cb_opnum4 expected, int *status)
{
__be32 *p;
u32 op;