aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@sandisk.com>2016-03-30 14:28:11 -0400
committerMartin K. Petersen <martin.petersen@oracle.com>2016-04-11 16:57:09 -0400
commit4c1340af8854836796bc50555de446286dce4625 (patch)
tree5e6008580718a6142f5b4f348c682166abc58629
parent7a15fdfab012dddc00ee2c859cf50669e3dae3df (diff)
scsi_transport_iscsi: Declare local symbols static
Avoid that building with W=1 causes gcc to report warnings about symbols that have not been declared. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Reviewed-by: Mike Christie <michaelc@cs.wisc.edu> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-rw-r--r--drivers/scsi/scsi_transport_iscsi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/scsi/scsi_transport_iscsi.c b/drivers/scsi/scsi_transport_iscsi.c
index ea5a9f37c9d2..42bca619f854 100644
--- a/drivers/scsi/scsi_transport_iscsi.c
+++ b/drivers/scsi/scsi_transport_iscsi.c
@@ -1009,7 +1009,7 @@ static void iscsi_flashnode_sess_release(struct device *dev)
1009 kfree(fnode_sess); 1009 kfree(fnode_sess);
1010} 1010}
1011 1011
1012struct device_type iscsi_flashnode_sess_dev_type = { 1012static struct device_type iscsi_flashnode_sess_dev_type = {
1013 .name = "iscsi_flashnode_sess_dev_type", 1013 .name = "iscsi_flashnode_sess_dev_type",
1014 .groups = iscsi_flashnode_sess_attr_groups, 1014 .groups = iscsi_flashnode_sess_attr_groups,
1015 .release = iscsi_flashnode_sess_release, 1015 .release = iscsi_flashnode_sess_release,
@@ -1195,13 +1195,13 @@ static void iscsi_flashnode_conn_release(struct device *dev)
1195 kfree(fnode_conn); 1195 kfree(fnode_conn);
1196} 1196}
1197 1197
1198struct device_type iscsi_flashnode_conn_dev_type = { 1198static struct device_type iscsi_flashnode_conn_dev_type = {
1199 .name = "iscsi_flashnode_conn_dev_type", 1199 .name = "iscsi_flashnode_conn_dev_type",
1200 .groups = iscsi_flashnode_conn_attr_groups, 1200 .groups = iscsi_flashnode_conn_attr_groups,
1201 .release = iscsi_flashnode_conn_release, 1201 .release = iscsi_flashnode_conn_release,
1202}; 1202};
1203 1203
1204struct bus_type iscsi_flashnode_bus; 1204static struct bus_type iscsi_flashnode_bus;
1205 1205
1206int iscsi_flashnode_bus_match(struct device *dev, 1206int iscsi_flashnode_bus_match(struct device *dev,
1207 struct device_driver *drv) 1207 struct device_driver *drv)
@@ -1212,7 +1212,7 @@ int iscsi_flashnode_bus_match(struct device *dev,
1212} 1212}
1213EXPORT_SYMBOL_GPL(iscsi_flashnode_bus_match); 1213EXPORT_SYMBOL_GPL(iscsi_flashnode_bus_match);
1214 1214
1215struct bus_type iscsi_flashnode_bus = { 1215static struct bus_type iscsi_flashnode_bus = {
1216 .name = "iscsi_flashnode", 1216 .name = "iscsi_flashnode",
1217 .match = &iscsi_flashnode_bus_match, 1217 .match = &iscsi_flashnode_bus_match,
1218}; 1218};