[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202207120426.x79ElJvZ-lkp@intel.com>
Date: Tue, 12 Jul 2022 04:50:43 +0800
From: kernel test robot <lkp@...el.com>
To: Gao Xiang <hsiangkao@...ux.alibaba.com>
Cc: kbuild-all@...ts.01.org, Xiang Gao <xiang@...nel.org>,
linux-kernel@...r.kernel.org
Subject: [xiang:erofs/advancedpcl 16/16] fs/erofs/zdata.c:489:34: warning:
unused variable 'map'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/xiang/linux.git erofs/advancedpcl
head: 00f10658c760bc3e64c14215e6a4a961bda932c7
commit: 00f10658c760bc3e64c14215e6a4a961bda932c7 [16/16] erofs: introduce multi-reference pclusters (fully-referenced)
config: x86_64-randconfig-a011 (https://download.01.org/0day-ci/archive/20220712/202207120426.x79ElJvZ-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/xiang/linux.git/commit/?id=00f10658c760bc3e64c14215e6a4a961bda932c7
git remote add xiang https://git.kernel.org/pub/scm/linux/kernel/git/xiang/linux.git
git fetch --no-tags xiang erofs/advancedpcl
git checkout 00f10658c760bc3e64c14215e6a4a961bda932c7
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash fs/erofs/
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/erofs/zdata.c: In function 'z_erofs_lookup_pcluster':
>> fs/erofs/zdata.c:489:34: warning: unused variable 'map' [-Wunused-variable]
489 | struct erofs_map_blocks *map = &fe->map;
| ^~~
vim +/map +489 fs/erofs/zdata.c
3883a79abd0227 drivers/staging/erofs/unzip_vle.c Gao Xiang 2018-07-26 486
816bd78aca8450 fs/erofs/zdata.c Gao Xiang 2022-06-28 487 static int z_erofs_lookup_pcluster(struct z_erofs_decompress_frontend *fe)
3883a79abd0227 drivers/staging/erofs/unzip_vle.c Gao Xiang 2018-07-26 488 {
816bd78aca8450 fs/erofs/zdata.c Gao Xiang 2022-06-28 @489 struct erofs_map_blocks *map = &fe->map;
5c6dcc57e2e505 fs/erofs/zdata.c Gao Xiang 2022-03-02 490 struct z_erofs_pcluster *pcl = fe->pcl;
97e86a858bc360 drivers/staging/erofs/zdata.c Gao Xiang 2019-07-31 491
64094a04414f0b fs/erofs/zdata.c Gao Xiang 2020-02-20 492 /* to avoid unexpected loop formed by corrupted images */
5c6dcc57e2e505 fs/erofs/zdata.c Gao Xiang 2022-03-02 493 if (fe->owned_head == &pcl->next || pcl == fe->tailpcl) {
bfc4ccb1584129 drivers/staging/erofs/zdata.c Gao Xiang 2019-08-21 494 DBG_BUGON(1);
9e579fc123a0c9 fs/erofs/zdata.c Gao Xiang 2019-10-08 495 return -EFSCORRUPTED;
bfc4ccb1584129 drivers/staging/erofs/zdata.c Gao Xiang 2019-08-21 496 }
3883a79abd0227 drivers/staging/erofs/unzip_vle.c Gao Xiang 2018-07-26 497
87ca34a7065db6 fs/erofs/zdata.c Gao Xiang 2022-05-29 498 mutex_lock(&pcl->lock);
bfc4ccb1584129 drivers/staging/erofs/zdata.c Gao Xiang 2019-08-21 499 /* used to check tail merging loop due to corrupted images */
5c6dcc57e2e505 fs/erofs/zdata.c Gao Xiang 2022-03-02 500 if (fe->owned_head == Z_EROFS_PCLUSTER_TAIL)
5c6dcc57e2e505 fs/erofs/zdata.c Gao Xiang 2022-03-02 501 fe->tailpcl = pcl;
473e15b0c0f7cf fs/erofs/zdata.c Gao Xiang 2020-12-08 502
5c6dcc57e2e505 fs/erofs/zdata.c Gao Xiang 2022-03-02 503 z_erofs_try_to_claim_pcluster(fe);
9e579fc123a0c9 fs/erofs/zdata.c Gao Xiang 2019-10-08 504 return 0;
3883a79abd0227 drivers/staging/erofs/unzip_vle.c Gao Xiang 2018-07-26 505 }
3883a79abd0227 drivers/staging/erofs/unzip_vle.c Gao Xiang 2018-07-26 506
:::::: The code at line 489 was first introduced by commit
:::::: 816bd78aca845093ffe6d508aced3a89f3b5b168 erofs: get rid of unneeded `inode', `map' and `sb'
:::::: TO: Gao Xiang <hsiangkao@...ux.alibaba.com>
:::::: CC: Gao Xiang <hsiangkao@...ux.alibaba.com>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists