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>
This commit is contained in:
Bart Van Assche 2016-03-30 11:28:11 -07:00 committed by Martin K. Petersen
parent 7a15fdfab0
commit 4c1340af88
1 changed files with 4 additions and 4 deletions

View File

@ -1009,7 +1009,7 @@ static void iscsi_flashnode_sess_release(struct device *dev)
kfree(fnode_sess); kfree(fnode_sess);
} }
struct device_type iscsi_flashnode_sess_dev_type = { static struct device_type iscsi_flashnode_sess_dev_type = {
.name = "iscsi_flashnode_sess_dev_type", .name = "iscsi_flashnode_sess_dev_type",
.groups = iscsi_flashnode_sess_attr_groups, .groups = iscsi_flashnode_sess_attr_groups,
.release = iscsi_flashnode_sess_release, .release = iscsi_flashnode_sess_release,
@ -1195,13 +1195,13 @@ static void iscsi_flashnode_conn_release(struct device *dev)
kfree(fnode_conn); kfree(fnode_conn);
} }
struct device_type iscsi_flashnode_conn_dev_type = { static struct device_type iscsi_flashnode_conn_dev_type = {
.name = "iscsi_flashnode_conn_dev_type", .name = "iscsi_flashnode_conn_dev_type",
.groups = iscsi_flashnode_conn_attr_groups, .groups = iscsi_flashnode_conn_attr_groups,
.release = iscsi_flashnode_conn_release, .release = iscsi_flashnode_conn_release,
}; };
struct bus_type iscsi_flashnode_bus; static struct bus_type iscsi_flashnode_bus;
int iscsi_flashnode_bus_match(struct device *dev, int iscsi_flashnode_bus_match(struct device *dev,
struct device_driver *drv) struct device_driver *drv)
@ -1212,7 +1212,7 @@ int iscsi_flashnode_bus_match(struct device *dev,
} }
EXPORT_SYMBOL_GPL(iscsi_flashnode_bus_match); EXPORT_SYMBOL_GPL(iscsi_flashnode_bus_match);
struct bus_type iscsi_flashnode_bus = { static struct bus_type iscsi_flashnode_bus = {
.name = "iscsi_flashnode", .name = "iscsi_flashnode",
.match = &iscsi_flashnode_bus_match, .match = &iscsi_flashnode_bus_match,
}; };