On Sat, 2005-01-29 at 09:03 -0500, [EMAIL PROTECTED] wrote:
> Adds io statistics (requests, completions, error count) as generic
> attributes for scsi devices.
I needed the attached to make this compile without warnings on ia64
James
===== drivers/scsi/scsi_sysfs.c 1.65 vs edited =====
--- 1.65/drivers/scsi/scsi_sysfs.c 2005-02-03 21:35:03 -06:00
+++ edited/drivers/scsi/scsi_sysfs.c 2005-02-03 21:59:14 -06:00
@@ -411,7 +411,7 @@
static ssize_t
show_iostat_counterbits(struct device *dev, char *buf)
{
- return snprintf(buf, 20, "%d\n", sizeof(atomic_t) * 8);
+ return snprintf(buf, 20, "%d\n", (int)sizeof(atomic_t) * 8);
}
static DEVICE_ATTR(iocounterbits, S_IRUGO, show_iostat_counterbits, NULL);
@@ -421,7 +421,7 @@
show_iostat_##field(struct device *dev, char *buf) \
{ \
struct scsi_device *sdev = to_scsi_device(dev); \
- u64 count = (u64)atomic_read(&sdev->field); \
+ unsigned long long count = atomic_read(&sdev->field); \
return snprintf(buf, 20, "0x%llx\n", count); \
} \
static DEVICE_ATTR(field, S_IRUGO, show_iostat_##field, NULL)
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html