Skip to content
Snippets Groups Projects
Commit 160e7f67 authored by Tomohiro Kusumi's avatar Tomohiro Kusumi Committed by James Bottomley
Browse files

[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: default avatarTomohiro Kusumi <kusumi.tomohiro@jp.fujitsu.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent 8637ac33
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment