[SCSI] fix sdev_rw_attr macro for scsi device sysfs entries
authorTomohiro Kusumi <kusumi.tomohiro@jp.fujitsu.com>
Wed, 14 Apr 2010 06:15:14 +0000 (15:15 +0900)
committerJames Bottomley <James.Bottomley@suse.de>
Sat, 1 May 2010 19:16:30 +0000 (14:16 -0500)
commit160e7f671344e40b86663a8913e175a3bb5d7f84
treedac801c19cb372e29017e9a6333f55ce7207b36d
parent8637ac3340eca9d01f056f81c10fd61d15d2f5ee
[SCSI] fix sdev_rw_attr macro for scsi device sysfs entries

This patch fixes sdev_rw_attr() macro for scsi device sysfs entries.
It seems there is no such function snscanf in the current linux kernel,
so it fails to compile scsi driver when someone try to add a new rw entry.
This has been unfixed for a long time probably because current scsi device
has no rw entries.

# grep snscanf . -rn
./drivers/scsi/scsi_sysfs.c:489:        snscanf (buf, 20, format_string, &sdev->field);                 \

Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@jp.fujitsu.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/scsi_sysfs.c