2020-01-31 00:20:26

by Stephen Rothwell

[permalink] [raw]
Subject: linux-next: build warning after merge of the block tree

Hi all,

After merging the block tree, today's linux-next build (arm
multi_v7_defconfig) produced this warning:

fs/io_uring.c: In function '__io_uring_show_fdinfo':
fs/io_uring.c:6558:32: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
6558 | seq_printf(m, "%5u: 0x%llx/%lu\n", i, buf->ubuf, buf->len);
| ~~^ ~~~~~~~~
| | |
| long unsigned int size_t {aka unsigned int}
| %u

Introduced by commit

0380f1b6d0c6 ("io_uring: add ->show_fdinfo() for the io_uring file descriptor")

--
Cheers,
Stephen Rothwell


Attachments:
(No filename) (499.00 B)
OpenPGP digital signature

2020-01-31 00:27:59

by Jens Axboe

[permalink] [raw]
Subject: Re: linux-next: build warning after merge of the block tree

On 1/30/20 5:16 PM, Stephen Rothwell wrote:
> Hi all,
>
> After merging the block tree, today's linux-next build (arm
> multi_v7_defconfig) produced this warning:
>
> fs/io_uring.c: In function '__io_uring_show_fdinfo':
> fs/io_uring.c:6558:32: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
> 6558 | seq_printf(m, "%5u: 0x%llx/%lu\n", i, buf->ubuf, buf->len);
> | ~~^ ~~~~~~~~
> | | |
> | long unsigned int size_t {aka unsigned int}
> | %u
>
> Introduced by commit
>
> 0380f1b6d0c6 ("io_uring: add ->show_fdinfo() for the io_uring file descriptor")

Thanks, did fix that up, forgot to push to for-next... Will rectify that now.

--
Jens Axboe