diff options
Diffstat (limited to 'fs/lockd/svc.c')
-rw-r--r-- | fs/lockd/svc.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/fs/lockd/svc.c b/fs/lockd/svc.c index cc6abe6280bc..726b6cecf430 100644 --- a/fs/lockd/svc.c +++ b/fs/lockd/svc.c | |||
@@ -740,32 +740,32 @@ module_exit(exit_nlm); | |||
740 | * Define NLM program and procedures | 740 | * Define NLM program and procedures |
741 | */ | 741 | */ |
742 | static unsigned int nlmsvc_version1_count[17]; | 742 | static unsigned int nlmsvc_version1_count[17]; |
743 | static struct svc_version nlmsvc_version1 = { | 743 | static const struct svc_version nlmsvc_version1 = { |
744 | .vs_vers = 1, | 744 | .vs_vers = 1, |
745 | .vs_nproc = 17, | 745 | .vs_nproc = 17, |
746 | .vs_proc = nlmsvc_procedures, | 746 | .vs_proc = nlmsvc_procedures, |
747 | .vs_count = nlmsvc_version1_count, | 747 | .vs_count = nlmsvc_version1_count, |
748 | .vs_xdrsize = NLMSVC_XDRSIZE, | 748 | .vs_xdrsize = NLMSVC_XDRSIZE, |
749 | }; | 749 | }; |
750 | static unsigned int nlmsvc_version3_count[24]; | 750 | static unsigned int nlmsvc_version3_count[24]; |
751 | static struct svc_version nlmsvc_version3 = { | 751 | static const struct svc_version nlmsvc_version3 = { |
752 | .vs_vers = 3, | 752 | .vs_vers = 3, |
753 | .vs_nproc = 24, | 753 | .vs_nproc = 24, |
754 | .vs_proc = nlmsvc_procedures, | 754 | .vs_proc = nlmsvc_procedures, |
755 | .vs_count = nlmsvc_version3_count, | 755 | .vs_count = nlmsvc_version3_count, |
756 | .vs_xdrsize = NLMSVC_XDRSIZE, | 756 | .vs_xdrsize = NLMSVC_XDRSIZE, |
757 | }; | 757 | }; |
758 | #ifdef CONFIG_LOCKD_V4 | 758 | #ifdef CONFIG_LOCKD_V4 |
759 | static unsigned int nlmsvc_version4_count[24]; | 759 | static unsigned int nlmsvc_version4_count[24]; |
760 | static struct svc_version nlmsvc_version4 = { | 760 | static const struct svc_version nlmsvc_version4 = { |
761 | .vs_vers = 4, | 761 | .vs_vers = 4, |
762 | .vs_nproc = 24, | 762 | .vs_nproc = 24, |
763 | .vs_proc = nlmsvc_procedures4, | 763 | .vs_proc = nlmsvc_procedures4, |
764 | .vs_count = nlmsvc_version4_count, | 764 | .vs_count = nlmsvc_version4_count, |
765 | .vs_xdrsize = NLMSVC_XDRSIZE, | 765 | .vs_xdrsize = NLMSVC_XDRSIZE, |
766 | }; | 766 | }; |
767 | #endif | 767 | #endif |
768 | static struct svc_version * nlmsvc_version[] = { | 768 | static const struct svc_version *nlmsvc_version[] = { |
769 | [1] = &nlmsvc_version1, | 769 | [1] = &nlmsvc_version1, |
770 | [3] = &nlmsvc_version3, | 770 | [3] = &nlmsvc_version3, |
771 | #ifdef CONFIG_LOCKD_V4 | 771 | #ifdef CONFIG_LOCKD_V4 |