aboutsummaryrefslogtreecommitdiffstats
path: root/fs/lockd/xdr.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/lockd/xdr.c')
-rw-r--r--fs/lockd/xdr.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/lockd/xdr.c b/fs/lockd/xdr.c
index 6aac4b2c9ff0..9702956d206c 100644
--- a/fs/lockd/xdr.c
+++ b/fs/lockd/xdr.c
@@ -534,10 +534,6 @@ nlmclt_decode_res(struct rpc_rqst *req, __be32 *p, struct nlm_res *resp)
534#define NLM_res_sz NLM_cookie_sz+1 534#define NLM_res_sz NLM_cookie_sz+1
535#define NLM_norep_sz 0 535#define NLM_norep_sz 0
536 536
537#ifndef MAX
538# define MAX(a, b) (((a) > (b))? (a) : (b))
539#endif
540
541/* 537/*
542 * For NLM, a void procedure really returns nothing 538 * For NLM, a void procedure really returns nothing
543 */ 539 */
@@ -548,7 +544,8 @@ nlmclt_decode_res(struct rpc_rqst *req, __be32 *p, struct nlm_res *resp)
548 .p_proc = NLMPROC_##proc, \ 544 .p_proc = NLMPROC_##proc, \
549 .p_encode = (kxdrproc_t) nlmclt_encode_##argtype, \ 545 .p_encode = (kxdrproc_t) nlmclt_encode_##argtype, \
550 .p_decode = (kxdrproc_t) nlmclt_decode_##restype, \ 546 .p_decode = (kxdrproc_t) nlmclt_decode_##restype, \
551 .p_bufsiz = MAX(NLM_##argtype##_sz, NLM_##restype##_sz) << 2, \ 547 .p_arglen = NLM_##argtype##_sz, \
548 .p_replen = NLM_##restype##_sz, \
552 .p_statidx = NLMPROC_##proc, \ 549 .p_statidx = NLMPROC_##proc, \
553 .p_name = #proc, \ 550 .p_name = #proc, \
554 } 551 }