summaryrefslogtreecommitdiffstats
path: root/fs/lockd/svcproc.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-05-08 13:01:48 -0400
committerChristoph Hellwig <hch@lst.de>2017-05-15 11:42:24 -0400
commit026fec7e7c4723b5f26a753bbcad69f68c8299d4 (patch)
treeef9d60d345e80aa9823dfa3e2405e9ec09459d0d /fs/lockd/svcproc.c
parent8537488b5a2f33980e33f654b0a515304de2b267 (diff)
sunrpc: properly type pc_decode callbacks
Drop the argp 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>
Diffstat (limited to 'fs/lockd/svcproc.c')
-rw-r--r--fs/lockd/svcproc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/lockd/svcproc.c b/fs/lockd/svcproc.c
index 3add50661fab..204a698f7d41 100644
--- a/fs/lockd/svcproc.c
+++ b/fs/lockd/svcproc.c
@@ -538,7 +538,7 @@ struct nlm_void { int dummy; };
538 538
539#define PROC(name, xargt, xrest, argt, rest, respsize) \ 539#define PROC(name, xargt, xrest, argt, rest, respsize) \
540 { .pc_func = nlmsvc_proc_##name, \ 540 { .pc_func = nlmsvc_proc_##name, \
541 .pc_decode = (kxdrproc_t) nlmsvc_decode_##xargt, \ 541 .pc_decode = nlmsvc_decode_##xargt, \
542 .pc_encode = (kxdrproc_t) nlmsvc_encode_##xrest, \ 542 .pc_encode = (kxdrproc_t) nlmsvc_encode_##xrest, \
543 .pc_release = NULL, \ 543 .pc_release = NULL, \
544 .pc_argsize = sizeof(struct nlm_##argt), \ 544 .pc_argsize = sizeof(struct nlm_##argt), \