From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============6195858661722691291==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH RFC] btrfs: sysfs: add /debug/io_accounting/ directory Date: Thu, 27 Jan 2022 14:09:30 +0800 Message-ID: <0e88a42c-ee0c-e962-e326-84d940769a96@intel.com> In-Reply-To: <202201260130.4VVHtyiM-lkp@intel.com> List-Id: --===============6195858661722691291== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Wenruo, [FYI, it's a private test report for your RFC patch.] [auto build test WARNING on kdave/for-next] [also build test WARNING on v5.17-rc1 next-20220125] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Qu-Wenruo/btrfs-sysfs-add-= uuid-debug-io_accounting-directory/20220121-132629 base: https://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git for= -next config: x86_64-randconfig-c007-20220124 (https://download.01.org/0day-ci/ar= chive/20220126/202201260130.4VVHtyiM-lkp(a)intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 997e12= 8e2a78f5a5434fc75997441ae1ee76f8a4) reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin= /make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/0day-ci/linux/commit/879aebce4c7d6a684b93b925= 45978dc75bf4abd5 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Qu-Wenruo/btrfs-sysfs-add-uuid-de= bug-io_accounting-directory/20220121-132629 git checkout 879aebce4c7d6a684b93b92545978dc75bf4abd5 # save the config file to linux build tree COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross ARC= H=3Dx86_64 clang-analyzer If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot clang-analyzer warnings: (new ones prefixed by >>) >> fs/btrfs/volumes.c:6780:6: warning: Value stored to 'length' during its= initialization is never read [clang-analyzer-deadcode.DeadStores] u32 length =3D bio->bi_iter.bi_size; ^~~~~~ ~~~~~~~~~~~~~~~~~~~~ >> fs/btrfs/volumes.c:6781:7: warning: Value stored to 'metadata' during i= ts initialization is never read [clang-analyzer-deadcode.DeadStores] bool metadata =3D bio->bi_opf & REQ_META; ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ vim +/length +6780 fs/btrfs/volumes.c de1ee92ac3bce4 Josef Bacik 2012-10-19 6777 879aebce4c7d6a Qu Wenruo 2022-01-21 6778 static void update_io_accounti= ng(struct btrfs_fs_info *fs_info, struct bio *bio) 879aebce4c7d6a Qu Wenruo 2022-01-21 6779 { 879aebce4c7d6a Qu Wenruo 2022-01-21 @6780 u32 length =3D bio->bi_iter.b= i_size; 879aebce4c7d6a Qu Wenruo 2022-01-21 @6781 bool metadata =3D bio->bi_opf= & REQ_META; 879aebce4c7d6a Qu Wenruo 2022-01-21 6782 ## this build has CONFIG_BTRFS_DEBUG=3Dn ## --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============6195858661722691291==--