]> git.baikalelectronics.ru Git - kernel.git/commit
fs: fixup warning part_discard_alignment_show()
authorJens Axboe <jaxboe@fusionio.com>
Mon, 9 May 2011 06:28:13 +0000 (08:28 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Mon, 9 May 2011 06:28:13 +0000 (08:28 +0200)
commit3f0057d3dae63620d1323c2aca4a75a76b13b9b6
treec0740b29423b04a5d675539d5d841139b538c30a
parentf71f24ec5f7cc597165228116ce62cf66e8b49b8
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>
fs/partitions/check.c