aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-10-16 11:18:49 -0400
committerChristoph Hellwig <hch@lst.de>2017-10-19 10:15:19 -0400
commite1919dff152a6c3164396145407f5a309eb74135 (patch)
tree0a9d9f72e06ba59e3ee685ad00deffb602f03583
parent4843afe4e6a5c1ddb3824b14678aa112e24f1e43 (diff)
nullb: make config_item_type const
Make these structures const as they are either passed to the functions having the argument as const or stored as a reference in the "ci_type" const field of a config_item structure. Done using Coccienlle. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
-rw-r--r--drivers/block/null_blk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/null_blk.c b/drivers/block/null_blk.c
index 8042c26ea9e6..cda69dbefe3b 100644
--- a/drivers/block/null_blk.c
+++ b/drivers/block/null_blk.c
@@ -476,7 +476,7 @@ static struct configfs_item_operations nullb_device_ops = {
476 .release = nullb_device_release, 476 .release = nullb_device_release,
477}; 477};
478 478
479static struct config_item_type nullb_device_type = { 479static const struct config_item_type nullb_device_type = {
480 .ct_item_ops = &nullb_device_ops, 480 .ct_item_ops = &nullb_device_ops,
481 .ct_attrs = nullb_device_attrs, 481 .ct_attrs = nullb_device_attrs,
482 .ct_owner = THIS_MODULE, 482 .ct_owner = THIS_MODULE,
@@ -528,7 +528,7 @@ static struct configfs_group_operations nullb_group_ops = {
528 .drop_item = nullb_group_drop_item, 528 .drop_item = nullb_group_drop_item,
529}; 529};
530 530
531static struct config_item_type nullb_group_type = { 531static const struct config_item_type nullb_group_type = {
532 .ct_group_ops = &nullb_group_ops, 532 .ct_group_ops = &nullb_group_ops,
533 .ct_attrs = nullb_group_attrs, 533 .ct_attrs = nullb_group_attrs,
534 .ct_owner = THIS_MODULE, 534 .ct_owner = THIS_MODULE,