summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2006-01-06 00:20:59 -0800
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-06 08:34:10 -0800
commit6961ece46c7d02de1bb83914900608e39633787d (patch)
tree55aadb7f85c2ac17f88753257bba3b3ca76b16f8
parent93c8cad03f02dbd1532a5413bdced25f000d5728 (diff)
downloadblackbird-op-linux-6961ece46c7d02de1bb83914900608e39633787d.tar.gz
blackbird-op-linux-6961ece46c7d02de1bb83914900608e39633787d.zip
[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>
-rw-r--r--drivers/md/md.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 742a82a4d10b..27db100d8b12 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
OpenPOWER on IntegriCloud