aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dlm/config.c
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-10-16 11:18:53 -0400
committerChristoph Hellwig <hch@lst.de>2017-10-19 10:15:22 -0400
commit761594b741768a425d56dd3eb3f5a04276c7bb73 (patch)
tree28db4bb2d11bbf785c912ed24c521db2183f251d /fs/dlm/config.c
parent0d4a4406c4aabb4d2c9ac6a48f3c77afe36e36ed (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.c16
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
285static struct config_item_type clusters_type = { 285static 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
290static struct config_item_type cluster_type = { 290static 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
296static struct config_item_type spaces_type = { 296static 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
301static struct config_item_type space_type = { 301static 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
306static struct config_item_type comms_type = { 306static 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
311static struct config_item_type comm_type = { 311static 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
317static struct config_item_type nodes_type = { 317static 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
322static struct config_item_type node_type = { 322static 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,