[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202210072348.kwgFhnhW-lkp@intel.com>
Date: Fri, 7 Oct 2022 23:30:22 +0800
From: kernel test robot <lkp@...el.com>
To: Jeff Layton <jlayton@...nel.org>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org
Subject: [jlayton:iversion 18/18] fs/ext4/file.c:276:71: warning: format
specifies type 'ssize_t' (aka 'long') but the argument has type 'int'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git iversion
head: 8c967bcb92934a21384bde38df3eda9c854d76be
commit: 8c967bcb92934a21384bde38df3eda9c854d76be [18/18] ext4: update times after I/O in write codepaths
config: riscv-randconfig-r003-20221003
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git/commit/?id=8c967bcb92934a21384bde38df3eda9c854d76be
git remote add jlayton https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git
git fetch --no-tags jlayton iversion
git checkout 8c967bcb92934a21384bde38df3eda9c854d76be
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash fs/ext4/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
>> fs/ext4/file.c:276:71: warning: format specifies type 'ssize_t' (aka 'long') but the argument has type 'int' [-Wformat]
pr_warn_once("ext4: failed to update i_version after write: %zd\n", ret);
~~~ ^~~
%d
include/linux/printk.h:622:42: note: expanded from macro 'pr_warn_once'
printk_once(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
include/linux/printk.h:603:30: note: expanded from macro 'printk_once'
DO_ONCE_LITE(printk, fmt, ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
include/linux/once_lite.h:11:32: note: expanded from macro 'DO_ONCE_LITE'
DO_ONCE_LITE_IF(true, func, ##__VA_ARGS__)
^~~~~~~~~~~
include/linux/once_lite.h:31:9: note: expanded from macro 'DO_ONCE_LITE_IF'
func(__VA_ARGS__); \
^~~~~~~~~~~
include/linux/printk.h:464:60: note: expanded from macro 'printk'
#define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
include/linux/printk.h:436:19: note: expanded from macro 'printk_index_wrap'
_p_func(_fmt, ##__VA_ARGS__); \
~~~~ ^~~~~~~~~~~
1 warning generated.
vim +276 fs/ext4/file.c
269
270 static void ext4_update_iversion(struct file *file)
271 {
272 int ret;
273
274 ret = file_update_iversion(file);
275 if (ret)
> 276 pr_warn_once("ext4: failed to update i_version after write: %zd\n", ret);
277
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (174296 bytes)
Powered by blists - more mailing lists