summaryrefslogtreecommitdiffstats
path: root/fs/lockd/svc.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/lockd/svc.c')
-rw-r--r--fs/lockd/svc.c38
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 */
742static unsigned int nlmsvc_version1_count[17]; 742static unsigned int nlmsvc_version1_count[17];
743static struct svc_version nlmsvc_version1 = { 743static 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};
750static unsigned int nlmsvc_version3_count[24]; 750static unsigned int nlmsvc_version3_count[24];
751static struct svc_version nlmsvc_version3 = { 751static 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
759static unsigned int nlmsvc_version4_count[24]; 759static unsigned int nlmsvc_version4_count[24];
760static struct svc_version nlmsvc_version4 = { 760static 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
768static struct svc_version * nlmsvc_version[] = { 768static 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