Skip to contentSkip to conversation

linux-next: build warning after merge of the block tree

DISCUSSION Stephen Rothwell 2 participants 2 messages Jan 31, 2020 Linux-next tree

lore
Share & tools
lore
#0 lore raw

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")

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 13 lines · Stephen Rothwell

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
Quoted 3 lines

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.

Signature · 1 line
Jens Axboe