From: Andrew Morton Date: Fri, 6 Jan 2006 08:20:59 +0000 (-0800) Subject: [PATCH] md-export-rdev-data_offset-via-sysfs-fix X-Git-Tag: v2.6.16-rc1~936^2~6 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6961ece46c7d02de1bb83914900608e39633787d;p=linux-2.6-omap-h63xx.git [PATCH] md-export-rdev-data_offset-via-sysfs-fix drivers/md/md.c: In function `offset_show': drivers/md/md.c:1670: warning: long long unsigned int format, different type arg (arg 3) Cc: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/md/md.c b/drivers/md/md.c index 742a82a4d10..27db100d8b1 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -1667,7 +1667,7 @@ __ATTR(slot, 0644, slot_show, slot_store); static ssize_t offset_show(mdk_rdev_t *rdev, char *page) { - return sprintf(page, "%llu\n", rdev->data_offset); + return sprintf(page, "%llu\n", (unsigned long long)rdev->data_offset); } static ssize_t