aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sunrpc
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-05-08 12:48:24 -0400
committerChristoph Hellwig <hch@lst.de>2017-05-15 11:42:23 -0400
commit8537488b5a2f33980e33f654b0a515304de2b267 (patch)
tree6132f630283d5fd2c6370c496eae0cd47d51635c /include/linux/sunrpc
parenta6beb73272b4c0108e41bc7c7b5a447ae6c92863 (diff)
sunrpc: properly type pc_release callbacks
Drop the p and resp arguments as they are always NULL or 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>
Diffstat (limited to 'include/linux/sunrpc')
-rw-r--r--include/linux/sunrpc/svc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/sunrpc/svc.h b/include/linux/sunrpc/svc.h
index 5c222af2db41..1381e1343640 100644
--- a/include/linux/sunrpc/svc.h
+++ b/include/linux/sunrpc/svc.h
@@ -423,7 +423,8 @@ struct svc_procedure {
423 __be32 (*pc_func)(struct svc_rqst *); 423 __be32 (*pc_func)(struct svc_rqst *);
424 kxdrproc_t pc_decode; /* XDR decode args */ 424 kxdrproc_t pc_decode; /* XDR decode args */
425 kxdrproc_t pc_encode; /* XDR encode result */ 425 kxdrproc_t pc_encode; /* XDR encode result */
426 kxdrproc_t pc_release; /* XDR free result */ 426 /* XDR free result: */
427 void (*pc_release)(struct svc_rqst *);
427 unsigned int pc_argsize; /* argument struct size */ 428 unsigned int pc_argsize; /* argument struct size */
428 unsigned int pc_ressize; /* result struct size */ 429 unsigned int pc_ressize; /* result struct size */
429 unsigned int pc_count; /* call count */ 430 unsigned int pc_count; /* call count */