* [2.6 patch] make scsi_sysfs.c:dev_attr_hstate static
@ 2008-04-23 9:52 Adrian Bunk
0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2008-04-23 9:52 UTC (permalink / raw)
To: Tony Jones, James Bottomley; +Cc: linux-scsi, linux-kernel
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-04-23 9:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-23 9:52 [2.6 patch] make scsi_sysfs.c:dev_attr_hstate static Adrian Bunk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®