aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/xdr.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-05-08 13:42:02 -0400
committerChristoph Hellwig <hch@lst.de>2017-05-15 11:42:25 -0400
commit63f8de37951a64cc24479eafd33085537e088075 (patch)
treee572e2542ef9370c9dfec6795660d52b72f77712 /fs/nfsd/xdr.h
parent026fec7e7c4723b5f26a753bbcad69f68c8299d4 (diff)
sunrpc: properly type pc_encode callbacks
Drop the resp argument as it can trivially be derived from the rqstp argument. With that all functions now have the same prototype, and we can remove the unsafe casting to kxdrproc_t. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfsd/xdr.h')
-rw-r--r--fs/nfsd/xdr.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/fs/nfsd/xdr.h b/fs/nfsd/xdr.h
index 8eeb752cf6f8..457ce45e5084 100644
--- a/fs/nfsd/xdr.h
+++ b/fs/nfsd/xdr.h
@@ -143,13 +143,13 @@ int nfssvc_decode_readlinkargs(struct svc_rqst *, __be32 *);
143int nfssvc_decode_linkargs(struct svc_rqst *, __be32 *); 143int nfssvc_decode_linkargs(struct svc_rqst *, __be32 *);
144int nfssvc_decode_symlinkargs(struct svc_rqst *, __be32 *); 144int nfssvc_decode_symlinkargs(struct svc_rqst *, __be32 *);
145int nfssvc_decode_readdirargs(struct svc_rqst *, __be32 *); 145int nfssvc_decode_readdirargs(struct svc_rqst *, __be32 *);
146int nfssvc_encode_void(struct svc_rqst *, __be32 *, void *); 146int nfssvc_encode_void(struct svc_rqst *, __be32 *);
147int nfssvc_encode_attrstat(struct svc_rqst *, __be32 *, struct nfsd_attrstat *); 147int nfssvc_encode_attrstat(struct svc_rqst *, __be32 *);
148int nfssvc_encode_diropres(struct svc_rqst *, __be32 *, struct nfsd_diropres *); 148int nfssvc_encode_diropres(struct svc_rqst *, __be32 *);
149int nfssvc_encode_readlinkres(struct svc_rqst *, __be32 *, struct nfsd_readlinkres *); 149int nfssvc_encode_readlinkres(struct svc_rqst *, __be32 *);
150int nfssvc_encode_readres(struct svc_rqst *, __be32 *, struct nfsd_readres *); 150int nfssvc_encode_readres(struct svc_rqst *, __be32 *);
151int nfssvc_encode_statfsres(struct svc_rqst *, __be32 *, struct nfsd_statfsres *); 151int nfssvc_encode_statfsres(struct svc_rqst *, __be32 *);
152int nfssvc_encode_readdirres(struct svc_rqst *, __be32 *, struct nfsd_readdirres *); 152int nfssvc_encode_readdirres(struct svc_rqst *, __be32 *);
153 153
154int nfssvc_encode_entry(void *, const char *name, 154int nfssvc_encode_entry(void *, const char *name,
155 int namlen, loff_t offset, u64 ino, unsigned int); 155 int namlen, loff_t offset, u64 ino, unsigned int);