* [block:io_uring-5.6 1/2] 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}'
@ 2020-01-30 19:30 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-01-30 19:30 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2392 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git io_uring-5.6
head: 0d16cfac1608a72ceb78128a04cd2adf5e44b21a
commit: 0380f1b6d0c6b7de8e4eb0b387b7ad9f6bd065da [1/2] io_uring: add ->show_fdinfo() for the io_uring file descriptor
config: um-i386_defconfig (attached as .config)
compiler: gcc-7 (Debian 7.5.0-3) 7.5.0
reproduce:
git checkout 0380f1b6d0c6b7de8e4eb0b387b7ad9f6bd065da
# save the attached .config to linux build tree
make ARCH=um SUBARCH=i386
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
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=]
seq_printf(m, "%5u: 0x%llx/%lu\n", i, buf->ubuf, buf->len);
~~^ ~~~~~~~~
%u
vim +6558 fs/io_uring.c
6536
6537 static void __io_uring_show_fdinfo(struct io_ring_ctx *ctx, struct seq_file *m)
6538 {
6539 int i;
6540
6541 mutex_lock(&ctx->uring_lock);
6542 seq_printf(m, "UserFiles:\t%u\n", ctx->nr_user_files);
6543 for (i = 0; i < ctx->nr_user_files; i++) {
6544 struct fixed_file_table *table;
6545 struct file *f;
6546
6547 table = &ctx->file_data->table[i >> IORING_FILE_TABLE_SHIFT];
6548 f = table->files[i & IORING_FILE_TABLE_MASK];
6549 if (f)
6550 seq_printf(m, "%5u: %s\n", i, file_dentry(f)->d_iname);
6551 else
6552 seq_printf(m, "%5u: <none>\n", i);
6553 }
6554 seq_printf(m, "UserBufs:\t%u\n", ctx->nr_user_bufs);
6555 for (i = 0; i < ctx->nr_user_bufs; i++) {
6556 struct io_mapped_ubuf *buf = &ctx->user_bufs[i];
6557
> 6558 seq_printf(m, "%5u: 0x%llx/%lu\n", i, buf->ubuf, buf->len);
6559 }
6560 if (!idr_is_empty(&ctx->personality_idr)) {
6561 seq_printf(m, "Personalities:\n");
6562 idr_for_each(&ctx->personality_idr, io_uring_show_cred, m);
6563 }
6564 mutex_unlock(&ctx->uring_lock);
6565 }
6566
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corporation
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 8667 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-01-30 19:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-30 19:30 [block:io_uring-5.6 1/2] 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}' kbuild test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.