diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-14 17:44:04 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-14 17:44:04 -0500 |
commit | abc36be236358162202e86ad88616ff95a755101 (patch) | |
tree | cbb14c01e837fa2c82fb271337e333a5e393b850 /fs/ocfs2 | |
parent | f14fc0ccee5521e5b38cdd1df4385d32c6e1805b (diff) | |
parent | 6ace4f6bbcfde70278a33c11443ecda3ed0ec1b6 (diff) |
Merge tag 'configfs-for-4.15' of git://git.infradead.org/users/hch/configfs
Pull configfs updates from Christoph Hellwig:
"A couple of configfs cleanups:
- proper use of the bool type (Thomas Meyer)
- constification of struct config_item_type (Bhumika Goyal)"
* tag 'configfs-for-4.15' of git://git.infradead.org/users/hch/configfs:
RDMA/cma: make config_item_type const
stm class: make config_item_type const
ACPI: configfs: make config_item_type const
nvmet: make config_item_type const
usb: gadget: configfs: make config_item_type const
PCI: endpoint: make config_item_type const
iio: make function argument and some structures const
usb: gadget: make config_item_type structures const
dlm: make config_item_type const
netconsole: make config_item_type const
nullb: make config_item_type const
ocfs2/cluster: make config_item_type const
target: make config_item_type const
configfs: make ci_type field, some pointers and function arguments const
configfs: make config_item_type const
configfs: Fix bool initialization/comparison
Diffstat (limited to 'fs/ocfs2')
-rw-r--r-- | fs/ocfs2/cluster/heartbeat.c | 4 | ||||
-rw-r--r-- | fs/ocfs2/cluster/nodemanager.c | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/fs/ocfs2/cluster/heartbeat.c b/fs/ocfs2/cluster/heartbeat.c index d0206042d068..ea8c551bcd7e 100644 --- a/fs/ocfs2/cluster/heartbeat.c +++ b/fs/ocfs2/cluster/heartbeat.c | |||
@@ -2025,7 +2025,7 @@ static struct configfs_item_operations o2hb_region_item_ops = { | |||
2025 | .release = o2hb_region_release, | 2025 | .release = o2hb_region_release, |
2026 | }; | 2026 | }; |
2027 | 2027 | ||
2028 | static struct config_item_type o2hb_region_type = { | 2028 | static const struct config_item_type o2hb_region_type = { |
2029 | .ct_item_ops = &o2hb_region_item_ops, | 2029 | .ct_item_ops = &o2hb_region_item_ops, |
2030 | .ct_attrs = o2hb_region_attrs, | 2030 | .ct_attrs = o2hb_region_attrs, |
2031 | .ct_owner = THIS_MODULE, | 2031 | .ct_owner = THIS_MODULE, |
@@ -2310,7 +2310,7 @@ static struct configfs_group_operations o2hb_heartbeat_group_group_ops = { | |||
2310 | .drop_item = o2hb_heartbeat_group_drop_item, | 2310 | .drop_item = o2hb_heartbeat_group_drop_item, |
2311 | }; | 2311 | }; |
2312 | 2312 | ||
2313 | static struct config_item_type o2hb_heartbeat_group_type = { | 2313 | static const struct config_item_type o2hb_heartbeat_group_type = { |
2314 | .ct_group_ops = &o2hb_heartbeat_group_group_ops, | 2314 | .ct_group_ops = &o2hb_heartbeat_group_group_ops, |
2315 | .ct_attrs = o2hb_heartbeat_group_attrs, | 2315 | .ct_attrs = o2hb_heartbeat_group_attrs, |
2316 | .ct_owner = THIS_MODULE, | 2316 | .ct_owner = THIS_MODULE, |
diff --git a/fs/ocfs2/cluster/nodemanager.c b/fs/ocfs2/cluster/nodemanager.c index b17d180bdc16..a51200ece93d 100644 --- a/fs/ocfs2/cluster/nodemanager.c +++ b/fs/ocfs2/cluster/nodemanager.c | |||
@@ -378,7 +378,7 @@ static struct configfs_item_operations o2nm_node_item_ops = { | |||
378 | .release = o2nm_node_release, | 378 | .release = o2nm_node_release, |
379 | }; | 379 | }; |
380 | 380 | ||
381 | static struct config_item_type o2nm_node_type = { | 381 | static const struct config_item_type o2nm_node_type = { |
382 | .ct_item_ops = &o2nm_node_item_ops, | 382 | .ct_item_ops = &o2nm_node_item_ops, |
383 | .ct_attrs = o2nm_node_attrs, | 383 | .ct_attrs = o2nm_node_attrs, |
384 | .ct_owner = THIS_MODULE, | 384 | .ct_owner = THIS_MODULE, |
@@ -619,7 +619,7 @@ static struct configfs_group_operations o2nm_node_group_group_ops = { | |||
619 | .drop_item = o2nm_node_group_drop_item, | 619 | .drop_item = o2nm_node_group_drop_item, |
620 | }; | 620 | }; |
621 | 621 | ||
622 | static struct config_item_type o2nm_node_group_type = { | 622 | static const struct config_item_type o2nm_node_group_type = { |
623 | .ct_group_ops = &o2nm_node_group_group_ops, | 623 | .ct_group_ops = &o2nm_node_group_group_ops, |
624 | .ct_owner = THIS_MODULE, | 624 | .ct_owner = THIS_MODULE, |
625 | }; | 625 | }; |
@@ -637,7 +637,7 @@ static struct configfs_item_operations o2nm_cluster_item_ops = { | |||
637 | .release = o2nm_cluster_release, | 637 | .release = o2nm_cluster_release, |
638 | }; | 638 | }; |
639 | 639 | ||
640 | static struct config_item_type o2nm_cluster_type = { | 640 | static const struct config_item_type o2nm_cluster_type = { |
641 | .ct_item_ops = &o2nm_cluster_item_ops, | 641 | .ct_item_ops = &o2nm_cluster_item_ops, |
642 | .ct_attrs = o2nm_cluster_attrs, | 642 | .ct_attrs = o2nm_cluster_attrs, |
643 | .ct_owner = THIS_MODULE, | 643 | .ct_owner = THIS_MODULE, |
@@ -722,7 +722,7 @@ static struct configfs_group_operations o2nm_cluster_group_group_ops = { | |||
722 | .drop_item = o2nm_cluster_group_drop_item, | 722 | .drop_item = o2nm_cluster_group_drop_item, |
723 | }; | 723 | }; |
724 | 724 | ||
725 | static struct config_item_type o2nm_cluster_group_type = { | 725 | static const struct config_item_type o2nm_cluster_group_type = { |
726 | .ct_group_ops = &o2nm_cluster_group_group_ops, | 726 | .ct_group_ops = &o2nm_cluster_group_group_ops, |
727 | .ct_owner = THIS_MODULE, | 727 | .ct_owner = THIS_MODULE, |
728 | }; | 728 | }; |