Commit 999eb9ee authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] fix ppc64 wanings in fs/partitions/check.c

cast dev_t when printing
parent ebca3272
......@@ -297,7 +297,7 @@ static ssize_t part_dev_read(struct hd_struct * p, char *page)
struct gendisk *disk = container_of(p->kobj.parent,struct gendisk,kobj);
int part = p - disk->part + 1;
dev_t base = MKDEV(disk->major, disk->first_minor);
return sprintf(page, "%04x\n",base + part);
return sprintf(page, "%04x\n", (unsigned)(base + part));
}
static ssize_t part_start_read(struct hd_struct * p, 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