diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-10-16 11:18:53 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2017-10-19 10:15:22 -0400 |
commit | 761594b741768a425d56dd3eb3f5a04276c7bb73 (patch) | |
tree | 28db4bb2d11bbf785c912ed24c521db2183f251d /fs/dlm/config.c | |
parent | 0d4a4406c4aabb4d2c9ac6a48f3c77afe36e36ed (diff) |
dlm: make config_item_type const
Make config_item_type structures const as they are either passed to a
function having the argument as const or stored in the const "ci_type"
field of a config_item structure.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/dlm/config.c')
-rw-r--r-- | fs/dlm/config.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/fs/dlm/config.c b/fs/dlm/config.c index 7211e826d90d..1270551d24e3 100644 --- a/fs/dlm/config.c +++ b/fs/dlm/config.c | |||
@@ -282,44 +282,44 @@ static struct configfs_item_operations node_ops = { | |||
282 | .release = release_node, | 282 | .release = release_node, |
283 | }; | 283 | }; |
284 | 284 | ||
285 | static struct config_item_type clusters_type = { | 285 | static const struct config_item_type clusters_type = { |
286 | .ct_group_ops = &clusters_ops, | 286 | .ct_group_ops = &clusters_ops, |
287 | .ct_owner = THIS_MODULE, | 287 | .ct_owner = THIS_MODULE, |
288 | }; | 288 | }; |
289 | 289 | ||
290 | static struct config_item_type cluster_type = { | 290 | static const struct config_item_type cluster_type = { |
291 | .ct_item_ops = &cluster_ops, | 291 | .ct_item_ops = &cluster_ops, |
292 | .ct_attrs = cluster_attrs, | 292 | .ct_attrs = cluster_attrs, |
293 | .ct_owner = THIS_MODULE, | 293 | .ct_owner = THIS_MODULE, |
294 | }; | 294 | }; |
295 | 295 | ||
296 | static struct config_item_type spaces_type = { | 296 | static const struct config_item_type spaces_type = { |
297 | .ct_group_ops = &spaces_ops, | 297 | .ct_group_ops = &spaces_ops, |
298 | .ct_owner = THIS_MODULE, | 298 | .ct_owner = THIS_MODULE, |
299 | }; | 299 | }; |
300 | 300 | ||
301 | static struct config_item_type space_type = { | 301 | static const struct config_item_type space_type = { |
302 | .ct_item_ops = &space_ops, | 302 | .ct_item_ops = &space_ops, |
303 | .ct_owner = THIS_MODULE, | 303 | .ct_owner = THIS_MODULE, |
304 | }; | 304 | }; |
305 | 305 | ||
306 | static struct config_item_type comms_type = { | 306 | static const struct config_item_type comms_type = { |
307 | .ct_group_ops = &comms_ops, | 307 | .ct_group_ops = &comms_ops, |
308 | .ct_owner = THIS_MODULE, | 308 | .ct_owner = THIS_MODULE, |
309 | }; | 309 | }; |
310 | 310 | ||
311 | static struct config_item_type comm_type = { | 311 | static const struct config_item_type comm_type = { |
312 | .ct_item_ops = &comm_ops, | 312 | .ct_item_ops = &comm_ops, |
313 | .ct_attrs = comm_attrs, | 313 | .ct_attrs = comm_attrs, |
314 | .ct_owner = THIS_MODULE, | 314 | .ct_owner = THIS_MODULE, |
315 | }; | 315 | }; |
316 | 316 | ||
317 | static struct config_item_type nodes_type = { | 317 | static const struct config_item_type nodes_type = { |
318 | .ct_group_ops = &nodes_ops, | 318 | .ct_group_ops = &nodes_ops, |
319 | .ct_owner = THIS_MODULE, | 319 | .ct_owner = THIS_MODULE, |
320 | }; | 320 | }; |
321 | 321 | ||
322 | static struct config_item_type node_type = { | 322 | static const struct config_item_type node_type = { |
323 | .ct_item_ops = &node_ops, | 323 | .ct_item_ops = &node_ops, |
324 | .ct_attrs = node_attrs, | 324 | .ct_attrs = node_attrs, |
325 | .ct_owner = THIS_MODULE, | 325 | .ct_owner = THIS_MODULE, |