Commit d78540da authored by Bart Van Assche's avatar Bart Van Assche Committed by Martin K. Petersen

scsi: Declare local symbols static

Avoid that building with W=1 causes gcc to report warnings about symbols
that have not been declared.

Cc: Hannes Reinecke <hare@suse.de>
Signed-off-by: default avatarBart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: default avatarHannes Reinicke <hare@suse.de>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarEwan Milne <emilne@redhat.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent ea765431
...@@ -81,6 +81,7 @@ const char *scsi_host_state_name(enum scsi_host_state state) ...@@ -81,6 +81,7 @@ const char *scsi_host_state_name(enum scsi_host_state state)
return name; return name;
} }
#ifdef CONFIG_SCSI_DH
static const struct { static const struct {
unsigned char value; unsigned char value;
char *name; char *name;
...@@ -94,7 +95,7 @@ static const struct { ...@@ -94,7 +95,7 @@ static const struct {
{ SCSI_ACCESS_STATE_TRANSITIONING, "transitioning" }, { SCSI_ACCESS_STATE_TRANSITIONING, "transitioning" },
}; };
const char *scsi_access_state_name(unsigned char state) static const char *scsi_access_state_name(unsigned char state)
{ {
int i; int i;
char *name = NULL; char *name = NULL;
...@@ -107,6 +108,7 @@ const char *scsi_access_state_name(unsigned char state) ...@@ -107,6 +108,7 @@ const char *scsi_access_state_name(unsigned char state)
} }
return name; return name;
} }
#endif
static int check_set(unsigned long long *val, char *src) static int check_set(unsigned long long *val, char *src)
{ {
...@@ -226,7 +228,7 @@ show_shost_state(struct device *dev, struct device_attribute *attr, char *buf) ...@@ -226,7 +228,7 @@ show_shost_state(struct device *dev, struct device_attribute *attr, char *buf)
} }
/* DEVICE_ATTR(state) clashes with dev_attr_state for sdev */ /* DEVICE_ATTR(state) clashes with dev_attr_state for sdev */
struct device_attribute dev_attr_hstate = static struct device_attribute dev_attr_hstate =
__ATTR(state, S_IRUGO | S_IWUSR, show_shost_state, store_shost_state); __ATTR(state, S_IRUGO | S_IWUSR, show_shost_state, store_shost_state);
static ssize_t static ssize_t
...@@ -401,7 +403,7 @@ static struct attribute *scsi_sysfs_shost_attrs[] = { ...@@ -401,7 +403,7 @@ static struct attribute *scsi_sysfs_shost_attrs[] = {
NULL NULL
}; };
struct attribute_group scsi_shost_attr_group = { static struct attribute_group scsi_shost_attr_group = {
.attrs = scsi_sysfs_shost_attrs, .attrs = scsi_sysfs_shost_attrs,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment