diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-10-16 11:18:42 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2017-10-19 10:15:17 -0400 |
commit | ece550b5758645809876e6e7862bf485c3a8d15c (patch) | |
tree | dbe176b10e95ff12dbb7bf5a380e6404626344b2 /include/target | |
parent | aa293583f0fe8b1634aeadbea06b4d0d04c30a95 (diff) |
target: 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 Coccinelle.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'include/target')
-rw-r--r-- | include/target/iscsi/iscsi_target_stat.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/target/iscsi/iscsi_target_stat.h b/include/target/iscsi/iscsi_target_stat.h index c27dd471656d..36e9c9a65adf 100644 --- a/include/target/iscsi/iscsi_target_stat.h +++ b/include/target/iscsi/iscsi_target_stat.h | |||
@@ -8,16 +8,16 @@ | |||
8 | /* | 8 | /* |
9 | * For struct iscsi_tiqn->tiqn_wwn default groups | 9 | * For struct iscsi_tiqn->tiqn_wwn default groups |
10 | */ | 10 | */ |
11 | extern struct config_item_type iscsi_stat_instance_cit; | 11 | extern const struct config_item_type iscsi_stat_instance_cit; |
12 | extern struct config_item_type iscsi_stat_sess_err_cit; | 12 | extern const struct config_item_type iscsi_stat_sess_err_cit; |
13 | extern struct config_item_type iscsi_stat_tgt_attr_cit; | 13 | extern const struct config_item_type iscsi_stat_tgt_attr_cit; |
14 | extern struct config_item_type iscsi_stat_login_cit; | 14 | extern const struct config_item_type iscsi_stat_login_cit; |
15 | extern struct config_item_type iscsi_stat_logout_cit; | 15 | extern const struct config_item_type iscsi_stat_logout_cit; |
16 | 16 | ||
17 | /* | 17 | /* |
18 | * For struct iscsi_session->se_sess default groups | 18 | * For struct iscsi_session->se_sess default groups |
19 | */ | 19 | */ |
20 | extern struct config_item_type iscsi_stat_sess_cit; | 20 | extern const struct config_item_type iscsi_stat_sess_cit; |
21 | 21 | ||
22 | /* iSCSI session error types */ | 22 | /* iSCSI session error types */ |
23 | #define ISCSI_SESS_ERR_UNKNOWN 0 | 23 | #define ISCSI_SESS_ERR_UNKNOWN 0 |