All of lore.kernel.org
 help / color / mirror / Atom feed
* [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'
@ 2024-09-03 15:04 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-09-03 15:04 UTC (permalink / raw)
  To: David Howells; +Cc: oe-kbuild-all

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-09-03 15:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-03 15:04 [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' kernel 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.