Messages in this thread Patch in this message | | | Date | Wed, 23 Apr 2008 12:52:24 +0300 | From | Adrian Bunk <> | Subject | [2.6 patch] make scsi_sysfs.c:dev_attr_hstate static |
| |
This patch makes the needlessly global dev_attr_hstate static.
Signed-off-by: Adrian Bunk <bunk@kernel.org>
--- 3cf42091b042f5cf957b81c4558d2aa0fd3ba741 diff --git a/drivers/scsi/scsi_sysfs.c b/drivers/scsi/scsi_sysfs.c index 67bb20e..84aad59 100644 --- a/drivers/scsi/scsi_sysfs.c +++ b/drivers/scsi/scsi_sysfs.c @@ -192,7 +192,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
| |