diff options
Diffstat (limited to 'fs/nfs/client.c')
-rw-r--r-- | fs/nfs/client.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/nfs/client.c b/fs/nfs/client.c index 34c8d1cbf06e..98af1cb28ee3 100644 --- a/fs/nfs/client.c +++ b/fs/nfs/client.c | |||
@@ -89,7 +89,7 @@ static bool nfs4_disable_idmapping = true; | |||
89 | /* | 89 | /* |
90 | * RPC cruft for NFS | 90 | * RPC cruft for NFS |
91 | */ | 91 | */ |
92 | static struct rpc_version *nfs_version[5] = { | 92 | static const struct rpc_version *nfs_version[5] = { |
93 | [2] = &nfs_version2, | 93 | [2] = &nfs_version2, |
94 | #ifdef CONFIG_NFS_V3 | 94 | #ifdef CONFIG_NFS_V3 |
95 | [3] = &nfs_version3, | 95 | [3] = &nfs_version3, |
@@ -99,7 +99,7 @@ static struct rpc_version *nfs_version[5] = { | |||
99 | #endif | 99 | #endif |
100 | }; | 100 | }; |
101 | 101 | ||
102 | struct rpc_program nfs_program = { | 102 | const struct rpc_program nfs_program = { |
103 | .name = "nfs", | 103 | .name = "nfs", |
104 | .number = NFS_PROGRAM, | 104 | .number = NFS_PROGRAM, |
105 | .nrvers = ARRAY_SIZE(nfs_version), | 105 | .nrvers = ARRAY_SIZE(nfs_version), |
@@ -115,11 +115,11 @@ struct rpc_stat nfs_rpcstat = { | |||
115 | 115 | ||
116 | #ifdef CONFIG_NFS_V3_ACL | 116 | #ifdef CONFIG_NFS_V3_ACL |
117 | static struct rpc_stat nfsacl_rpcstat = { &nfsacl_program }; | 117 | static struct rpc_stat nfsacl_rpcstat = { &nfsacl_program }; |
118 | static struct rpc_version * nfsacl_version[] = { | 118 | static const struct rpc_version *nfsacl_version[] = { |
119 | [3] = &nfsacl_version3, | 119 | [3] = &nfsacl_version3, |
120 | }; | 120 | }; |
121 | 121 | ||
122 | struct rpc_program nfsacl_program = { | 122 | const struct rpc_program nfsacl_program = { |
123 | .name = "nfsacl", | 123 | .name = "nfsacl", |
124 | .number = NFS_ACL_PROGRAM, | 124 | .number = NFS_ACL_PROGRAM, |
125 | .nrvers = ARRAY_SIZE(nfsacl_version), | 125 | .nrvers = ARRAY_SIZE(nfsacl_version), |