]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
sunrpc: properly type argument to kxdrdproc_t
authorChristoph Hellwig <hch@lst.de>
Mon, 8 May 2017 12:58:11 +0000 (14:58 +0200)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 13 Jul 2017 19:57:54 +0000 (15:57 -0400)
Pass struct rpc_request as the first argument instead of an untyped blob.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Acked-by: Trond Myklebust <trond.myklebust@primarydata.com>
include/linux/sunrpc/xdr.h
net/sunrpc/clnt.c

index 290f189de2009da69a99d51b232d05f95256b924..ed0fbf0d8d0f5e9e42aa6f8dd3216ff9bd668b2e 100644 (file)
@@ -226,7 +226,8 @@ struct xdr_stream {
  */
 typedef void   (*kxdreproc_t)(struct rpc_rqst *rqstp, struct xdr_stream *xdr,
                const void *obj);
-typedef int    (*kxdrdproc_t)(void *rqstp, struct xdr_stream *xdr, void *obj);
+typedef int    (*kxdrdproc_t)(struct rpc_rqst *rqstp, struct xdr_stream *xdr,
+               void *obj);
 
 extern void xdr_init_encode(struct xdr_stream *xdr, struct xdr_buf *buf, __be32 *p);
 extern __be32 *xdr_reserve_space(struct xdr_stream *xdr, size_t nbytes);
index 9fee20dc0c8093b0e8719dd86c01b010e96ab8a7..964d5c4a1b6096f831f53a044125b8449ee4b42c 100644 (file)
@@ -2481,7 +2481,8 @@ static void rpcproc_encode_null(struct rpc_rqst *rqstp, struct xdr_stream *xdr,
 {
 }
 
-static int rpcproc_decode_null(void *rqstp, struct xdr_stream *xdr, void *obj)
+static int rpcproc_decode_null(struct rpc_rqst *rqstp, struct xdr_stream *xdr,
+               void *obj)
 {
        return 0;
 }