sunrpc: properly type pc_func callbacks
Drop the argp and resp arguments as they 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 svc_procfunc as well as the svc_procfunc typedef itself. Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
@@ -1281,7 +1281,7 @@ svc_process_common(struct svc_rqst *rqstp, struct kvec *argv, struct kvec *resv)
|
||||
if (xdr && !xdr(rqstp, argv->iov_base, rqstp->rq_argp))
|
||||
goto err_garbage;
|
||||
|
||||
*statp = procp->pc_func(rqstp, rqstp->rq_argp, rqstp->rq_resp);
|
||||
*statp = procp->pc_func(rqstp);
|
||||
|
||||
/* Encode reply */
|
||||
if (*statp == rpc_drop_reply ||
|
||||
|
Reference in New Issue
Block a user