From: kernel test robot <lkp@intel.com>
To: David Howells <dhowells@redhat.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [dhowells-fs:netfs-crypt 37/37] fs/netfs/internal.h:439:16: warning: format '%zu' expects argument of type 'size_t', but argument 4 has type 'long unsigned int'
Date: Tue, 3 Sep 2024 23:04:58 +0800 [thread overview]
Message-ID: <202409032323.GhbNO1EX-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git netfs-crypt
head: 3962f4beba4e7ffa6cfab018df8a612902a1d2c8
commit: 3962f4beba4e7ffa6cfab018df8a612902a1d2c8 [37/37] netfs: Support decryption on ubuffered/DIO read
config: i386-randconfig-001-20240903 (https://download.01.org/0day-ci/archive/20240903/202409032323.GhbNO1EX-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240903/202409032323.GhbNO1EX-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202409032323.GhbNO1EX-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from include/asm-generic/bug.h:22,
from arch/x86/include/asm/bug.h:87,
from include/linux/bug.h:5,
from include/linux/jump_label.h:257,
from include/linux/static_key.h:1,
from arch/x86/include/asm/nospec-branch.h:6,
from arch/x86/include/asm/irqflags.h:9,
from include/linux/irqflags.h:18,
from include/linux/spinlock.h:59,
from include/linux/wait.h:9,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
from fs/netfs/crypto.c:8:
fs/netfs/crypto.c: In function 'netfs_decrypt_dio':
>> fs/netfs/internal.h:439:16: warning: format '%zu' expects argument of type 'size_t', but argument 4 has type 'long unsigned int' [-Wformat=]
439 | printk("[%-6.6s] "FMT"\n", current->comm, ##__VA_ARGS__)
| ^~~~~~~~~~~
include/linux/printk.h:437:25: note: in definition of macro 'printk_index_wrap'
437 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~
fs/netfs/internal.h:439:9: note: in expansion of macro 'printk'
439 | printk("[%-6.6s] "FMT"\n", current->comm, ##__VA_ARGS__)
| ^~~~~~
fs/netfs/internal.h:443:26: note: in expansion of macro 'dbgprintk'
443 | #define kdebug(FMT, ...) dbgprintk(FMT, ##__VA_ARGS__)
| ^~~~~~~~~
fs/netfs/crypto.c:304:9: note: in expansion of macro 'kdebug'
304 | kdebug("type=%u nr=%zu type=%u nr=%zu",
| ^~~~~~
fs/netfs/internal.h:439:16: warning: format '%zu' expects argument of type 'size_t', but argument 6 has type 'long unsigned int' [-Wformat=]
439 | printk("[%-6.6s] "FMT"\n", current->comm, ##__VA_ARGS__)
| ^~~~~~~~~~~
include/linux/printk.h:437:25: note: in definition of macro 'printk_index_wrap'
437 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~
fs/netfs/internal.h:439:9: note: in expansion of macro 'printk'
439 | printk("[%-6.6s] "FMT"\n", current->comm, ##__VA_ARGS__)
| ^~~~~~
fs/netfs/internal.h:443:26: note: in expansion of macro 'dbgprintk'
443 | #define kdebug(FMT, ...) dbgprintk(FMT, ##__VA_ARGS__)
| ^~~~~~~~~
fs/netfs/crypto.c:304:9: note: in expansion of macro 'kdebug'
304 | kdebug("type=%u nr=%zu type=%u nr=%zu",
| ^~~~~~
fs/netfs/crypto.c:283:36: warning: variable 'skip' set but not used [-Wunused-but-set-variable]
283 | size_t len, processed = 0, skip, bsize = 1UL << ctx->crypto_bshift;
| ^~~~
vim +439 fs/netfs/internal.h
915cd30cdea8811 David Howells 2023-11-20 433
3d3c95046742e4e David Howells 2020-05-13 434 /*****************************************************************************/
3d3c95046742e4e David Howells 2020-05-13 435 /*
3d3c95046742e4e David Howells 2020-05-13 436 * debug tracing
3d3c95046742e4e David Howells 2020-05-13 437 */
3d3c95046742e4e David Howells 2020-05-13 438 #define dbgprintk(FMT, ...) \
a9d47a50cf257ff David Howells 2024-07-18 @439 printk("[%-6.6s] "FMT"\n", current->comm, ##__VA_ARGS__)
3d3c95046742e4e David Howells 2020-05-13 440
:::::: The code at line 439 was first introduced by commit
:::::: a9d47a50cf257ff1019a4e30d573777882fd785c netfs: Revert "netfs: Switch debug logging to pr_debug()"
:::::: TO: David Howells <dhowells@redhat.com>
:::::: CC: Christian Brauner <brauner@kernel.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-09-03 15:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202409032323.GhbNO1EX-lkp@intel.com \
--to=lkp@intel.com \
--cc=dhowells@redhat.com \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.