[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 <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 742a82a..27db100 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -1667,7 +1667,7 @@
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