Commit d89ff79e authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] genhd warnings fix

I have a whole bunch of silly compile warning fixes here, arising from
building the kernel for a 64-bit target.  Some are trivial, some are genuine
printk bugs.

assuming dev_t is unsigned generates a warning on ppc64.  Cast it.
parent 7cc3ef9a
...@@ -299,7 +299,7 @@ static struct sysfs_ops disk_sysfs_ops = { ...@@ -299,7 +299,7 @@ static struct sysfs_ops disk_sysfs_ops = {
static ssize_t disk_dev_read(struct gendisk * disk, char *page) static ssize_t disk_dev_read(struct gendisk * disk, char *page)
{ {
dev_t base = MKDEV(disk->major, disk->first_minor); dev_t base = MKDEV(disk->major, disk->first_minor);
return sprintf(page, "%04x\n",base); return sprintf(page, "%04x\n", (unsigned)base);
} }
static ssize_t disk_range_read(struct gendisk * disk, char *page) static ssize_t disk_range_read(struct gendisk * disk, char *page)
{ {
......
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