mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Gao Xiang <hsiangkao@linux.alibaba.com>
Cc: kbuild-all@lists.01.org, Xiang Gao <xiang@kernel.org>,
	linux-kernel@vger.kernel.org
Subject: [xiang:erofs/advancedpcl 16/16] fs/erofs/zdata.c:489:34: warning: unused variable 'map'
Date: Tue, 12 Jul 2022 04:50:43 +0800	[thread overview]
Message-ID: <202207120426.x79ElJvZ-lkp@intel.com> (raw)

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@intel.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@linux.alibaba.com>
:::::: CC: Gao Xiang <hsiangkao@linux.alibaba.com>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

                 reply	other threads:[~2022-07-11 20:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202207120426.x79ElJvZ-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=hsiangkao@linux.alibaba.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=xiang@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®