Commit 23a37cf9 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] fix drivers/scsi/st.c warning

kdev_t.value is not an int.  Code looks fishy.
parent 151ea8ec
......@@ -3618,7 +3618,7 @@ __setup("st=", st_setup);
static ssize_t st_device_kdev_read(struct device *dev, char *page)
{
kdev_t kdev;
kdev.value=(int)dev->driver_data;
kdev.value=(unsigned long)dev->driver_data;
return sprintf(page, "%x\n",kdev.value);
}
static DEVICE_ATTR(kdev,S_IRUGO,st_device_kdev_read,NULL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment