Messages in this thread | | | Date | Tue, 15 Feb 2022 12:33:43 +0800 | From | kernel test robot <> | Subject | [jlayton:ceph-sparse-read 13/13] net/ceph/messenger_v2.c:3642:56: warning: variable 'recved' is uninitialized when used here |
| |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git ceph-sparse-read head: c0521644c264a8578ab61182209f303610af16e7 commit: c0521644c264a8578ab61182209f303610af16e7 [13/13] libceph: add revoke support for sparse data config: i386-randconfig-a003-20220214 (https://download.01.org/0day-ci/archive/20220215/202202151220.h4Fu215q-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 37f422f4ac31c8b8041c6b62065263314282dab6) 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 # https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git/commit/?id=c0521644c264a8578ab61182209f303610af16e7 git remote add jlayton https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git git fetch --no-tags jlayton ceph-sparse-read git checkout c0521644c264a8578ab61182209f303610af16e7 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash net/ceph/
If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> net/ceph/messenger_v2.c:3642:56: warning: variable 'recved' is uninitialized when used here [-Wuninitialized] dout("%s con %p recved %d resid %d\n", __func__, con, recved, resid); ^~~~~~ include/linux/ceph/ceph_debug.h:35:45: note: expanded from macro 'dout' # define dout(fmt, ...) pr_debug(" " fmt, ##__VA_ARGS__) ^~~~~~~~~~~ include/linux/printk.h:570:26: note: expanded from macro 'pr_debug' dynamic_pr_debug(fmt, ##__VA_ARGS__) ^~~~~~~~~~~ include/linux/dynamic_debug.h:163:22: note: expanded from macro 'dynamic_pr_debug' pr_fmt(fmt), ##__VA_ARGS__) ^~~~~~~~~~~ include/linux/dynamic_debug.h:152:56: note: expanded from macro '_dynamic_func_call' __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__) ^~~~~~~~~~~ include/linux/dynamic_debug.h:134:15: note: expanded from macro '__dynamic_func_call' func(&id, ##__VA_ARGS__); \ ^~~~~~~~~~~ net/ceph/messenger_v2.c:3635:12: note: initialize the variable 'recved' to silence this warning int recved, resid; /* current piece of data */ ^ = 0 1 warning generated.
vim +/recved +3642 net/ceph/messenger_v2.c
3632 3633 static void revoke_at_prepare_sparse_data(struct ceph_connection *con) 3634 { 3635 int recved, resid; /* current piece of data */ 3636 int remaining; 3637 3638 WARN_ON(con_secure(con)); 3639 WARN_ON(!data_len(con->in_msg)); 3640 WARN_ON(!iov_iter_is_bvec(&con->v2.in_iter)); 3641 resid = iov_iter_count(&con->v2.in_iter); > 3642 dout("%s con %p recved %d resid %d\n", __func__, con, recved, resid); 3643 3644 remaining = CEPH_EPILOGUE_PLAIN_LEN + con->v2.data_len_remain; 3645 con->v2.in_iter.count -= resid; 3646 set_in_skip(con, resid + remaining); 3647 con->v2.in_state = IN_S_FINISH_SKIP; 3648 } 3649
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
| |