Skip to content

Commit bbdd304

Browse files
author
Jens Axboe
committed
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>
1 parent 23ceb5b commit bbdd304

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fs/partitions/check.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,7 @@ ssize_t part_discard_alignment_show(struct device *dev,
258258
struct gendisk *disk = dev_to_disk(dev);
259259

260260
return sprintf(buf, "%u\n",
261-
(unsigned long long)queue_limit_discard_alignment(
262-
&disk->queue->limits,
261+
queue_limit_discard_alignment(&disk->queue->limits,
263262
p->start_sect));
264263
}
265264

0 commit comments

Comments
 (0)