scsi_sysfs.c: make local symbols static
PATCH 1/1 scsi_sysfs.c: make local symbols static
scsi_sysfs.c: make local symbols static
The symbols dev_attr_hstate and scsi_shost_attr_group are only used locally in this file. Make them static to prevent the following sparse warnings:
warning: symbol 'dev_attr_hstate' was not declared. Should it be static?
warning: symbol 'scsi_shost_attr_group' was not declared. Should it be static?
Signed-off-by H Hartley Sweeten <[email protected]>
Cc James E.J. Bottomley <[email protected]>
---
drivers/scsi/scsi_sysfs.c +2 -2
@@ -195,7 +195,7 @@ show_shost_state(struct device *dev, struct device_attribute *attr, char *buf) }/* 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); static ssize_t
@@ -271,7 +271,7 @@ static struct attribute *scsi_sysfs_shost_attrs[] = { NULL }; -struct attribute_group scsi_shost_attr_group = { +static struct attribute_group scsi_shost_attr_group = { .attrs = scsi_sysfs_shost_attrs, };