dm-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [dm:for-next 20/20] drivers/md/dm.c:2374:19: warning: variable 'map' set but not used
@ 2020-09-30  2:25 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-09-30  2:25 UTC (permalink / raw)
  To: Mike Snitzer; +Cc: dm-devel, kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3713 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git for-next
head:   3a6434fb7a713f9735912aef297078eeda3e47b4
commit: 3a6434fb7a713f9735912aef297078eeda3e47b4 [20/20] dm: fix missing imposition of queue_limits from dm_wq_work() thread
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 9.3.0
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/device-mapper/linux-dm.git/commit/?id=3a6434fb7a713f9735912aef297078eeda3e47b4
        git remote add dm https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git
        git fetch --no-tags dm for-next
        git checkout 3a6434fb7a713f9735912aef297078eeda3e47b4
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=xtensa 

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 >>):

   drivers/md/dm.c: In function 'dm_wq_work':
>> drivers/md/dm.c:2374:19: warning: variable 'map' set but not used [-Wunused-but-set-variable]
    2374 |  struct dm_table *map;
         |                   ^~~

vim +/map +2374 drivers/md/dm.c

85067747cf9888 Ming Lei          2020-06-24  2364  
^1da177e4c3f41 Linus Torvalds    2005-04-16  2365  /*
^1da177e4c3f41 Linus Torvalds    2005-04-16  2366   * Process the deferred bios
^1da177e4c3f41 Linus Torvalds    2005-04-16  2367   */
ef2085870ea448 Mikulas Patocka   2009-04-02  2368  static void dm_wq_work(struct work_struct *work)
^1da177e4c3f41 Linus Torvalds    2005-04-16  2369  {
ef2085870ea448 Mikulas Patocka   2009-04-02  2370  	struct mapped_device *md = container_of(work, struct mapped_device,
ef2085870ea448 Mikulas Patocka   2009-04-02  2371  						work);
3a6434fb7a713f Mike Snitzer      2020-09-28  2372  	struct bio *bio;
83d5e5b0af907d Mikulas Patocka   2013-07-10  2373  	int srcu_idx;
83d5e5b0af907d Mikulas Patocka   2013-07-10 @2374  	struct dm_table *map;
^1da177e4c3f41 Linus Torvalds    2005-04-16  2375  
83d5e5b0af907d Mikulas Patocka   2013-07-10  2376  	map = dm_get_live_table(md, &srcu_idx);
ef2085870ea448 Mikulas Patocka   2009-04-02  2377  
3b00b2036fac7a Mikulas Patocka   2009-04-09  2378  	while (!test_bit(DMF_BLOCK_IO_FOR_SUSPEND, &md->flags)) {
022c261100e156 Mikulas Patocka   2009-04-02  2379  		spin_lock_irq(&md->deferred_lock);
3a6434fb7a713f Mike Snitzer      2020-09-28  2380  		bio = bio_list_pop(&md->deferred);
022c261100e156 Mikulas Patocka   2009-04-02  2381  		spin_unlock_irq(&md->deferred_lock);
022c261100e156 Mikulas Patocka   2009-04-02  2382  
3a6434fb7a713f Mike Snitzer      2020-09-28  2383  		if (!bio)
df12ee996378a5 Alasdair G Kergon 2009-04-09  2384  			break;
73d410c0137f63 Milan Broz        2008-02-08  2385  
3a6434fb7a713f Mike Snitzer      2020-09-28  2386  		submit_bio_noacct(bio);
df12ee996378a5 Alasdair G Kergon 2009-04-09  2387  	}
ef2085870ea448 Mikulas Patocka   2009-04-02  2388  
83d5e5b0af907d Mikulas Patocka   2013-07-10  2389  	dm_put_live_table(md, srcu_idx);
^1da177e4c3f41 Linus Torvalds    2005-04-16  2390  }
^1da177e4c3f41 Linus Torvalds    2005-04-16  2391  

:::::: The code at line 2374 was first introduced by commit
:::::: 83d5e5b0af907d46d241a86d9e44003b3f0accbd dm: optimize use SRCU and RCU

:::::: TO: Mikulas Patocka <mpatocka@redhat.com>
:::::: CC: Alasdair G Kergon <agk@redhat.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 65044 bytes --]

[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-09-30  2:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-30  2:25 [dm:for-next 20/20] drivers/md/dm.c:2374:19: warning: variable 'map' set but not used kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).