Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

lockd: Replace PROC() macro with open code

Clean up: Follow-up on ten-year-old commit b9081d90f5b9 ("NFS: kill
off complicated macro 'PROC'") by performing the same conversion in
the lockd code. To reduce the chance of error, I copied the original
C preprocessor output and then made some minor edits.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>

authored by

Chuck Lever and committed by
J. Bruce Fields
49d99608 6b3dccd4

+398 -100
+199 -49
fs/lockd/svc4proc.c
··· 486 486 return rpc_success; 487 487 } 488 488 489 + static __be32 490 + nlm4svc_proc_unused(struct svc_rqst *rqstp) 491 + { 492 + return rpc_proc_unavail; 493 + } 494 + 489 495 490 496 /* 491 497 * NLM Server procedures. 492 498 */ 493 499 494 - #define nlm4svc_encode_norep nlm4svc_encode_void 495 - #define nlm4svc_decode_norep nlm4svc_decode_void 496 - #define nlm4svc_decode_testres nlm4svc_decode_void 497 - #define nlm4svc_decode_lockres nlm4svc_decode_void 498 - #define nlm4svc_decode_unlockres nlm4svc_decode_void 499 - #define nlm4svc_decode_cancelres nlm4svc_decode_void 500 - #define nlm4svc_decode_grantedres nlm4svc_decode_void 501 - 502 - #define nlm4svc_proc_none nlm4svc_proc_null 503 - #define nlm4svc_proc_test_res nlm4svc_proc_null 504 - #define nlm4svc_proc_lock_res nlm4svc_proc_null 505 - #define nlm4svc_proc_cancel_res nlm4svc_proc_null 506 - #define nlm4svc_proc_unlock_res nlm4svc_proc_null 507 - 508 500 struct nlm_void { int dummy; }; 509 501 510 - #define PROC(name, xargt, xrest, argt, rest, respsize) \ 511 - { .pc_func = nlm4svc_proc_##name, \ 512 - .pc_decode = nlm4svc_decode_##xargt, \ 513 - .pc_encode = nlm4svc_encode_##xrest, \ 514 - .pc_release = NULL, \ 515 - .pc_argsize = sizeof(struct nlm_##argt), \ 516 - .pc_ressize = sizeof(struct nlm_##rest), \ 517 - .pc_xdrressize = respsize, \ 518 - } 519 502 #define Ck (1+XDR_QUADLEN(NLM_MAXCOOKIELEN)) /* cookie */ 520 503 #define No (1+1024/4) /* netobj */ 521 504 #define St 1 /* status */ 522 505 #define Rg 4 /* range (offset + length) */ 523 - const struct svc_procedure nlmsvc_procedures4[] = { 524 - PROC(null, void, void, void, void, 1), 525 - PROC(test, testargs, testres, args, res, Ck+St+2+No+Rg), 526 - PROC(lock, lockargs, res, args, res, Ck+St), 527 - PROC(cancel, cancargs, res, args, res, Ck+St), 528 - PROC(unlock, unlockargs, res, args, res, Ck+St), 529 - PROC(granted, testargs, res, args, res, Ck+St), 530 - PROC(test_msg, testargs, norep, args, void, 1), 531 - PROC(lock_msg, lockargs, norep, args, void, 1), 532 - PROC(cancel_msg, cancargs, norep, args, void, 1), 533 - PROC(unlock_msg, unlockargs, norep, args, void, 1), 534 - PROC(granted_msg, testargs, norep, args, void, 1), 535 - PROC(test_res, testres, norep, res, void, 1), 536 - PROC(lock_res, lockres, norep, res, void, 1), 537 - PROC(cancel_res, cancelres, norep, res, void, 1), 538 - PROC(unlock_res, unlockres, norep, res, void, 1), 539 - PROC(granted_res, res, norep, res, void, 1), 540 - /* statd callback */ 541 - PROC(sm_notify, reboot, void, reboot, void, 1), 542 - PROC(none, void, void, void, void, 0), 543 - PROC(none, void, void, void, void, 0), 544 - PROC(none, void, void, void, void, 0), 545 - PROC(share, shareargs, shareres, args, res, Ck+St+1), 546 - PROC(unshare, shareargs, shareres, args, res, Ck+St+1), 547 - PROC(nm_lock, lockargs, res, args, res, Ck+St), 548 - PROC(free_all, notify, void, args, void, 1), 549 506 507 + const struct svc_procedure nlmsvc_procedures4[24] = { 508 + [NLMPROC_NULL] = { 509 + .pc_func = nlm4svc_proc_null, 510 + .pc_decode = nlm4svc_decode_void, 511 + .pc_encode = nlm4svc_encode_void, 512 + .pc_argsize = sizeof(struct nlm_void), 513 + .pc_ressize = sizeof(struct nlm_void), 514 + .pc_xdrressize = St, 515 + }, 516 + [NLMPROC_TEST] = { 517 + .pc_func = nlm4svc_proc_test, 518 + .pc_decode = nlm4svc_decode_testargs, 519 + .pc_encode = nlm4svc_encode_testres, 520 + .pc_argsize = sizeof(struct nlm_args), 521 + .pc_ressize = sizeof(struct nlm_res), 522 + .pc_xdrressize = Ck+St+2+No+Rg, 523 + }, 524 + [NLMPROC_LOCK] = { 525 + .pc_func = nlm4svc_proc_lock, 526 + .pc_decode = nlm4svc_decode_lockargs, 527 + .pc_encode = nlm4svc_encode_res, 528 + .pc_argsize = sizeof(struct nlm_args), 529 + .pc_ressize = sizeof(struct nlm_res), 530 + .pc_xdrressize = Ck+St, 531 + }, 532 + [NLMPROC_CANCEL] = { 533 + .pc_func = nlm4svc_proc_cancel, 534 + .pc_decode = nlm4svc_decode_cancargs, 535 + .pc_encode = nlm4svc_encode_res, 536 + .pc_argsize = sizeof(struct nlm_args), 537 + .pc_ressize = sizeof(struct nlm_res), 538 + .pc_xdrressize = Ck+St, 539 + }, 540 + [NLMPROC_UNLOCK] = { 541 + .pc_func = nlm4svc_proc_unlock, 542 + .pc_decode = nlm4svc_decode_unlockargs, 543 + .pc_encode = nlm4svc_encode_res, 544 + .pc_argsize = sizeof(struct nlm_args), 545 + .pc_ressize = sizeof(struct nlm_res), 546 + .pc_xdrressize = Ck+St, 547 + }, 548 + [NLMPROC_GRANTED] = { 549 + .pc_func = nlm4svc_proc_granted, 550 + .pc_decode = nlm4svc_decode_testargs, 551 + .pc_encode = nlm4svc_encode_res, 552 + .pc_argsize = sizeof(struct nlm_args), 553 + .pc_ressize = sizeof(struct nlm_res), 554 + .pc_xdrressize = Ck+St, 555 + }, 556 + [NLMPROC_TEST_MSG] = { 557 + .pc_func = nlm4svc_proc_test_msg, 558 + .pc_decode = nlm4svc_decode_testargs, 559 + .pc_encode = nlm4svc_encode_void, 560 + .pc_argsize = sizeof(struct nlm_args), 561 + .pc_ressize = sizeof(struct nlm_void), 562 + .pc_xdrressize = St, 563 + }, 564 + [NLMPROC_LOCK_MSG] = { 565 + .pc_func = nlm4svc_proc_lock_msg, 566 + .pc_decode = nlm4svc_decode_lockargs, 567 + .pc_encode = nlm4svc_encode_void, 568 + .pc_argsize = sizeof(struct nlm_args), 569 + .pc_ressize = sizeof(struct nlm_void), 570 + .pc_xdrressize = St, 571 + }, 572 + [NLMPROC_CANCEL_MSG] = { 573 + .pc_func = nlm4svc_proc_cancel_msg, 574 + .pc_decode = nlm4svc_decode_cancargs, 575 + .pc_encode = nlm4svc_encode_void, 576 + .pc_argsize = sizeof(struct nlm_args), 577 + .pc_ressize = sizeof(struct nlm_void), 578 + .pc_xdrressize = St, 579 + }, 580 + [NLMPROC_UNLOCK_MSG] = { 581 + .pc_func = nlm4svc_proc_unlock_msg, 582 + .pc_decode = nlm4svc_decode_unlockargs, 583 + .pc_encode = nlm4svc_encode_void, 584 + .pc_argsize = sizeof(struct nlm_args), 585 + .pc_ressize = sizeof(struct nlm_void), 586 + .pc_xdrressize = St, 587 + }, 588 + [NLMPROC_GRANTED_MSG] = { 589 + .pc_func = nlm4svc_proc_granted_msg, 590 + .pc_decode = nlm4svc_decode_testargs, 591 + .pc_encode = nlm4svc_encode_void, 592 + .pc_argsize = sizeof(struct nlm_args), 593 + .pc_ressize = sizeof(struct nlm_void), 594 + .pc_xdrressize = St, 595 + }, 596 + [NLMPROC_TEST_RES] = { 597 + .pc_func = nlm4svc_proc_null, 598 + .pc_decode = nlm4svc_decode_void, 599 + .pc_encode = nlm4svc_encode_void, 600 + .pc_argsize = sizeof(struct nlm_res), 601 + .pc_ressize = sizeof(struct nlm_void), 602 + .pc_xdrressize = St, 603 + }, 604 + [NLMPROC_LOCK_RES] = { 605 + .pc_func = nlm4svc_proc_null, 606 + .pc_decode = nlm4svc_decode_void, 607 + .pc_encode = nlm4svc_encode_void, 608 + .pc_argsize = sizeof(struct nlm_res), 609 + .pc_ressize = sizeof(struct nlm_void), 610 + .pc_xdrressize = St, 611 + }, 612 + [NLMPROC_CANCEL_RES] = { 613 + .pc_func = nlm4svc_proc_null, 614 + .pc_decode = nlm4svc_decode_void, 615 + .pc_encode = nlm4svc_encode_void, 616 + .pc_argsize = sizeof(struct nlm_res), 617 + .pc_ressize = sizeof(struct nlm_void), 618 + .pc_xdrressize = St, 619 + }, 620 + [NLMPROC_UNLOCK_RES] = { 621 + .pc_func = nlm4svc_proc_null, 622 + .pc_decode = nlm4svc_decode_void, 623 + .pc_encode = nlm4svc_encode_void, 624 + .pc_argsize = sizeof(struct nlm_res), 625 + .pc_ressize = sizeof(struct nlm_void), 626 + .pc_xdrressize = St, 627 + }, 628 + [NLMPROC_GRANTED_RES] = { 629 + .pc_func = nlm4svc_proc_granted_res, 630 + .pc_decode = nlm4svc_decode_res, 631 + .pc_encode = nlm4svc_encode_void, 632 + .pc_argsize = sizeof(struct nlm_res), 633 + .pc_ressize = sizeof(struct nlm_void), 634 + .pc_xdrressize = St, 635 + }, 636 + [NLMPROC_NSM_NOTIFY] = { 637 + .pc_func = nlm4svc_proc_sm_notify, 638 + .pc_decode = nlm4svc_decode_reboot, 639 + .pc_encode = nlm4svc_encode_void, 640 + .pc_argsize = sizeof(struct nlm_reboot), 641 + .pc_ressize = sizeof(struct nlm_void), 642 + .pc_xdrressize = St, 643 + }, 644 + [17] = { 645 + .pc_func = nlm4svc_proc_unused, 646 + .pc_decode = nlm4svc_decode_void, 647 + .pc_encode = nlm4svc_encode_void, 648 + .pc_argsize = sizeof(struct nlm_void), 649 + .pc_ressize = sizeof(struct nlm_void), 650 + .pc_xdrressize = 0, 651 + }, 652 + [18] = { 653 + .pc_func = nlm4svc_proc_unused, 654 + .pc_decode = nlm4svc_decode_void, 655 + .pc_encode = nlm4svc_encode_void, 656 + .pc_argsize = sizeof(struct nlm_void), 657 + .pc_ressize = sizeof(struct nlm_void), 658 + .pc_xdrressize = 0, 659 + }, 660 + [19] = { 661 + .pc_func = nlm4svc_proc_unused, 662 + .pc_decode = nlm4svc_decode_void, 663 + .pc_encode = nlm4svc_encode_void, 664 + .pc_argsize = sizeof(struct nlm_void), 665 + .pc_ressize = sizeof(struct nlm_void), 666 + .pc_xdrressize = 0, 667 + }, 668 + [NLMPROC_SHARE] = { 669 + .pc_func = nlm4svc_proc_share, 670 + .pc_decode = nlm4svc_decode_shareargs, 671 + .pc_encode = nlm4svc_encode_shareres, 672 + .pc_argsize = sizeof(struct nlm_args), 673 + .pc_ressize = sizeof(struct nlm_res), 674 + .pc_xdrressize = Ck+St+1, 675 + }, 676 + [NLMPROC_UNSHARE] = { 677 + .pc_func = nlm4svc_proc_unshare, 678 + .pc_decode = nlm4svc_decode_shareargs, 679 + .pc_encode = nlm4svc_encode_shareres, 680 + .pc_argsize = sizeof(struct nlm_args), 681 + .pc_ressize = sizeof(struct nlm_res), 682 + .pc_xdrressize = Ck+St+1, 683 + }, 684 + [NLMPROC_NM_LOCK] = { 685 + .pc_func = nlm4svc_proc_nm_lock, 686 + .pc_decode = nlm4svc_decode_lockargs, 687 + .pc_encode = nlm4svc_encode_res, 688 + .pc_argsize = sizeof(struct nlm_args), 689 + .pc_ressize = sizeof(struct nlm_res), 690 + .pc_xdrressize = Ck+St, 691 + }, 692 + [NLMPROC_FREE_ALL] = { 693 + .pc_func = nlm4svc_proc_free_all, 694 + .pc_decode = nlm4svc_decode_notify, 695 + .pc_encode = nlm4svc_encode_void, 696 + .pc_argsize = sizeof(struct nlm_args), 697 + .pc_ressize = sizeof(struct nlm_void), 698 + .pc_xdrressize = St, 699 + }, 550 700 };
+199 -51
fs/lockd/svcproc.c
··· 529 529 return rpc_success; 530 530 } 531 531 532 + static __be32 533 + nlmsvc_proc_unused(struct svc_rqst *rqstp) 534 + { 535 + return rpc_proc_unavail; 536 + } 537 + 532 538 /* 533 539 * NLM Server procedures. 534 540 */ 535 541 536 - #define nlmsvc_encode_norep nlmsvc_encode_void 537 - #define nlmsvc_decode_norep nlmsvc_decode_void 538 - #define nlmsvc_decode_testres nlmsvc_decode_void 539 - #define nlmsvc_decode_lockres nlmsvc_decode_void 540 - #define nlmsvc_decode_unlockres nlmsvc_decode_void 541 - #define nlmsvc_decode_cancelres nlmsvc_decode_void 542 - #define nlmsvc_decode_grantedres nlmsvc_decode_void 543 - 544 - #define nlmsvc_proc_none nlmsvc_proc_null 545 - #define nlmsvc_proc_test_res nlmsvc_proc_null 546 - #define nlmsvc_proc_lock_res nlmsvc_proc_null 547 - #define nlmsvc_proc_cancel_res nlmsvc_proc_null 548 - #define nlmsvc_proc_unlock_res nlmsvc_proc_null 549 - 550 542 struct nlm_void { int dummy; }; 551 - 552 - #define PROC(name, xargt, xrest, argt, rest, respsize) \ 553 - { .pc_func = nlmsvc_proc_##name, \ 554 - .pc_decode = nlmsvc_decode_##xargt, \ 555 - .pc_encode = nlmsvc_encode_##xrest, \ 556 - .pc_release = NULL, \ 557 - .pc_argsize = sizeof(struct nlm_##argt), \ 558 - .pc_ressize = sizeof(struct nlm_##rest), \ 559 - .pc_xdrressize = respsize, \ 560 - } 561 543 562 544 #define Ck (1+XDR_QUADLEN(NLM_MAXCOOKIELEN)) /* cookie */ 563 545 #define St 1 /* status */ 564 546 #define No (1+1024/4) /* Net Obj */ 565 547 #define Rg 2 /* range - offset + size */ 566 548 567 - const struct svc_procedure nlmsvc_procedures[] = { 568 - PROC(null, void, void, void, void, 1), 569 - PROC(test, testargs, testres, args, res, Ck+St+2+No+Rg), 570 - PROC(lock, lockargs, res, args, res, Ck+St), 571 - PROC(cancel, cancargs, res, args, res, Ck+St), 572 - PROC(unlock, unlockargs, res, args, res, Ck+St), 573 - PROC(granted, testargs, res, args, res, Ck+St), 574 - PROC(test_msg, testargs, norep, args, void, 1), 575 - PROC(lock_msg, lockargs, norep, args, void, 1), 576 - PROC(cancel_msg, cancargs, norep, args, void, 1), 577 - PROC(unlock_msg, unlockargs, norep, args, void, 1), 578 - PROC(granted_msg, testargs, norep, args, void, 1), 579 - PROC(test_res, testres, norep, res, void, 1), 580 - PROC(lock_res, lockres, norep, res, void, 1), 581 - PROC(cancel_res, cancelres, norep, res, void, 1), 582 - PROC(unlock_res, unlockres, norep, res, void, 1), 583 - PROC(granted_res, res, norep, res, void, 1), 584 - /* statd callback */ 585 - PROC(sm_notify, reboot, void, reboot, void, 1), 586 - PROC(none, void, void, void, void, 1), 587 - PROC(none, void, void, void, void, 1), 588 - PROC(none, void, void, void, void, 1), 589 - PROC(share, shareargs, shareres, args, res, Ck+St+1), 590 - PROC(unshare, shareargs, shareres, args, res, Ck+St+1), 591 - PROC(nm_lock, lockargs, res, args, res, Ck+St), 592 - PROC(free_all, notify, void, args, void, 0), 593 - 549 + const struct svc_procedure nlmsvc_procedures[24] = { 550 + [NLMPROC_NULL] = { 551 + .pc_func = nlmsvc_proc_null, 552 + .pc_decode = nlmsvc_decode_void, 553 + .pc_encode = nlmsvc_encode_void, 554 + .pc_argsize = sizeof(struct nlm_void), 555 + .pc_ressize = sizeof(struct nlm_void), 556 + .pc_xdrressize = St, 557 + }, 558 + [NLMPROC_TEST] = { 559 + .pc_func = nlmsvc_proc_test, 560 + .pc_decode = nlmsvc_decode_testargs, 561 + .pc_encode = nlmsvc_encode_testres, 562 + .pc_argsize = sizeof(struct nlm_args), 563 + .pc_ressize = sizeof(struct nlm_res), 564 + .pc_xdrressize = Ck+St+2+No+Rg, 565 + }, 566 + [NLMPROC_LOCK] = { 567 + .pc_func = nlmsvc_proc_lock, 568 + .pc_decode = nlmsvc_decode_lockargs, 569 + .pc_encode = nlmsvc_encode_res, 570 + .pc_argsize = sizeof(struct nlm_args), 571 + .pc_ressize = sizeof(struct nlm_res), 572 + .pc_xdrressize = Ck+St, 573 + }, 574 + [NLMPROC_CANCEL] = { 575 + .pc_func = nlmsvc_proc_cancel, 576 + .pc_decode = nlmsvc_decode_cancargs, 577 + .pc_encode = nlmsvc_encode_res, 578 + .pc_argsize = sizeof(struct nlm_args), 579 + .pc_ressize = sizeof(struct nlm_res), 580 + .pc_xdrressize = Ck+St, 581 + }, 582 + [NLMPROC_UNLOCK] = { 583 + .pc_func = nlmsvc_proc_unlock, 584 + .pc_decode = nlmsvc_decode_unlockargs, 585 + .pc_encode = nlmsvc_encode_res, 586 + .pc_argsize = sizeof(struct nlm_args), 587 + .pc_ressize = sizeof(struct nlm_res), 588 + .pc_xdrressize = Ck+St, 589 + }, 590 + [NLMPROC_GRANTED] = { 591 + .pc_func = nlmsvc_proc_granted, 592 + .pc_decode = nlmsvc_decode_testargs, 593 + .pc_encode = nlmsvc_encode_res, 594 + .pc_argsize = sizeof(struct nlm_args), 595 + .pc_ressize = sizeof(struct nlm_res), 596 + .pc_xdrressize = Ck+St, 597 + }, 598 + [NLMPROC_TEST_MSG] = { 599 + .pc_func = nlmsvc_proc_test_msg, 600 + .pc_decode = nlmsvc_decode_testargs, 601 + .pc_encode = nlmsvc_encode_void, 602 + .pc_argsize = sizeof(struct nlm_args), 603 + .pc_ressize = sizeof(struct nlm_void), 604 + .pc_xdrressize = St, 605 + }, 606 + [NLMPROC_LOCK_MSG] = { 607 + .pc_func = nlmsvc_proc_lock_msg, 608 + .pc_decode = nlmsvc_decode_lockargs, 609 + .pc_encode = nlmsvc_encode_void, 610 + .pc_argsize = sizeof(struct nlm_args), 611 + .pc_ressize = sizeof(struct nlm_void), 612 + .pc_xdrressize = St, 613 + }, 614 + [NLMPROC_CANCEL_MSG] = { 615 + .pc_func = nlmsvc_proc_cancel_msg, 616 + .pc_decode = nlmsvc_decode_cancargs, 617 + .pc_encode = nlmsvc_encode_void, 618 + .pc_argsize = sizeof(struct nlm_args), 619 + .pc_ressize = sizeof(struct nlm_void), 620 + .pc_xdrressize = St, 621 + }, 622 + [NLMPROC_UNLOCK_MSG] = { 623 + .pc_func = nlmsvc_proc_unlock_msg, 624 + .pc_decode = nlmsvc_decode_unlockargs, 625 + .pc_encode = nlmsvc_encode_void, 626 + .pc_argsize = sizeof(struct nlm_args), 627 + .pc_ressize = sizeof(struct nlm_void), 628 + .pc_xdrressize = St, 629 + }, 630 + [NLMPROC_GRANTED_MSG] = { 631 + .pc_func = nlmsvc_proc_granted_msg, 632 + .pc_decode = nlmsvc_decode_testargs, 633 + .pc_encode = nlmsvc_encode_void, 634 + .pc_argsize = sizeof(struct nlm_args), 635 + .pc_ressize = sizeof(struct nlm_void), 636 + .pc_xdrressize = St, 637 + }, 638 + [NLMPROC_TEST_RES] = { 639 + .pc_func = nlmsvc_proc_null, 640 + .pc_decode = nlmsvc_decode_void, 641 + .pc_encode = nlmsvc_encode_void, 642 + .pc_argsize = sizeof(struct nlm_res), 643 + .pc_ressize = sizeof(struct nlm_void), 644 + .pc_xdrressize = St, 645 + }, 646 + [NLMPROC_LOCK_RES] = { 647 + .pc_func = nlmsvc_proc_null, 648 + .pc_decode = nlmsvc_decode_void, 649 + .pc_encode = nlmsvc_encode_void, 650 + .pc_argsize = sizeof(struct nlm_res), 651 + .pc_ressize = sizeof(struct nlm_void), 652 + .pc_xdrressize = St, 653 + }, 654 + [NLMPROC_CANCEL_RES] = { 655 + .pc_func = nlmsvc_proc_null, 656 + .pc_decode = nlmsvc_decode_void, 657 + .pc_encode = nlmsvc_encode_void, 658 + .pc_argsize = sizeof(struct nlm_res), 659 + .pc_ressize = sizeof(struct nlm_void), 660 + .pc_xdrressize = St, 661 + }, 662 + [NLMPROC_UNLOCK_RES] = { 663 + .pc_func = nlmsvc_proc_null, 664 + .pc_decode = nlmsvc_decode_void, 665 + .pc_encode = nlmsvc_encode_void, 666 + .pc_argsize = sizeof(struct nlm_res), 667 + .pc_ressize = sizeof(struct nlm_void), 668 + .pc_xdrressize = St, 669 + }, 670 + [NLMPROC_GRANTED_RES] = { 671 + .pc_func = nlmsvc_proc_granted_res, 672 + .pc_decode = nlmsvc_decode_res, 673 + .pc_encode = nlmsvc_encode_void, 674 + .pc_argsize = sizeof(struct nlm_res), 675 + .pc_ressize = sizeof(struct nlm_void), 676 + .pc_xdrressize = St, 677 + }, 678 + [NLMPROC_NSM_NOTIFY] = { 679 + .pc_func = nlmsvc_proc_sm_notify, 680 + .pc_decode = nlmsvc_decode_reboot, 681 + .pc_encode = nlmsvc_encode_void, 682 + .pc_argsize = sizeof(struct nlm_reboot), 683 + .pc_ressize = sizeof(struct nlm_void), 684 + .pc_xdrressize = St, 685 + }, 686 + [17] = { 687 + .pc_func = nlmsvc_proc_unused, 688 + .pc_decode = nlmsvc_decode_void, 689 + .pc_encode = nlmsvc_encode_void, 690 + .pc_argsize = sizeof(struct nlm_void), 691 + .pc_ressize = sizeof(struct nlm_void), 692 + .pc_xdrressize = St, 693 + }, 694 + [18] = { 695 + .pc_func = nlmsvc_proc_unused, 696 + .pc_decode = nlmsvc_decode_void, 697 + .pc_encode = nlmsvc_encode_void, 698 + .pc_argsize = sizeof(struct nlm_void), 699 + .pc_ressize = sizeof(struct nlm_void), 700 + .pc_xdrressize = St, 701 + }, 702 + [19] = { 703 + .pc_func = nlmsvc_proc_unused, 704 + .pc_decode = nlmsvc_decode_void, 705 + .pc_encode = nlmsvc_encode_void, 706 + .pc_argsize = sizeof(struct nlm_void), 707 + .pc_ressize = sizeof(struct nlm_void), 708 + .pc_xdrressize = St, 709 + }, 710 + [NLMPROC_SHARE] = { 711 + .pc_func = nlmsvc_proc_share, 712 + .pc_decode = nlmsvc_decode_shareargs, 713 + .pc_encode = nlmsvc_encode_shareres, 714 + .pc_argsize = sizeof(struct nlm_args), 715 + .pc_ressize = sizeof(struct nlm_res), 716 + .pc_xdrressize = Ck+St+1, 717 + }, 718 + [NLMPROC_UNSHARE] = { 719 + .pc_func = nlmsvc_proc_unshare, 720 + .pc_decode = nlmsvc_decode_shareargs, 721 + .pc_encode = nlmsvc_encode_shareres, 722 + .pc_argsize = sizeof(struct nlm_args), 723 + .pc_ressize = sizeof(struct nlm_res), 724 + .pc_xdrressize = Ck+St+1, 725 + }, 726 + [NLMPROC_NM_LOCK] = { 727 + .pc_func = nlmsvc_proc_nm_lock, 728 + .pc_decode = nlmsvc_decode_lockargs, 729 + .pc_encode = nlmsvc_encode_res, 730 + .pc_argsize = sizeof(struct nlm_args), 731 + .pc_ressize = sizeof(struct nlm_res), 732 + .pc_xdrressize = Ck+St, 733 + }, 734 + [NLMPROC_FREE_ALL] = { 735 + .pc_func = nlmsvc_proc_free_all, 736 + .pc_decode = nlmsvc_decode_notify, 737 + .pc_encode = nlmsvc_encode_void, 738 + .pc_argsize = sizeof(struct nlm_args), 739 + .pc_ressize = sizeof(struct nlm_void), 740 + .pc_xdrressize = 0, 741 + }, 594 742 };