diff options
author | Jens Axboe <jaxboe@fusionio.com> | 2011-05-09 02:28:13 -0400 |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2011-05-09 02:28:13 -0400 |
commit | bbdd304cf66fbf2b4b2d28418dc619d443635e83 (patch) | |
tree | c0740b29423b04a5d675539d5d841139b538c30a /fs/partitions | |
parent | 23ceb5b7719e9276d4fa72a3ecf94dd396755276 (diff) |
fs: fixup warning part_discard_alignment_show()
Stephen reports:
-----
After merging the block tree, today's linux-next build (x86_64
allmodconfig) produced this warning:
fs/partitions/check.c: In function 'part_discard_alignment_show':
fs/partitions/check.c:263: warning: format '%u' expects type 'unsigned int', but argument 3 has type 'long long unsigned int'
Introduced by commit ("block: Remove extra discard_alignment from
hd_struct")
-----
Fix it up by just removing the cast, we return an int already.
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'fs/partitions')
-rw-r--r-- | fs/partitions/check.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/partitions/check.c b/fs/partitions/check.c index b7e16bccd5e5..8ed4d3433199 100644 --- a/fs/partitions/check.c +++ b/fs/partitions/check.c | |||
@@ -258,8 +258,7 @@ ssize_t part_discard_alignment_show(struct device *dev, | |||
258 | struct gendisk *disk = dev_to_disk(dev); | 258 | struct gendisk *disk = dev_to_disk(dev); |
259 | 259 | ||
260 | return sprintf(buf, "%u\n", | 260 | return sprintf(buf, "%u\n", |
261 | (unsigned long long)queue_limit_discard_alignment( | 261 | queue_limit_discard_alignment(&disk->queue->limits, |
262 | &disk->queue->limits, | ||
263 | p->start_sect)); | 262 | p->start_sect)); |
264 | } | 263 | } |
265 | 264 | ||