All of lore.kernel.org
 help / color / mirror / Atom feed
* [device-mapper-dm:dm-vdo-wip 55/90] drivers/md/dm-vdo/block-map.h:35:37: warning: 'UNMAPPED_BLOCK_MAP_ENTRY' defined but not used
@ 2023-11-02  5:43 kernel test robot
  2023-11-02 15:11 ` Mike Snitzer
  0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2023-11-02  5:43 UTC (permalink / raw)
  To: Matthew Sakai
  Cc: oe-kbuild-all, dm-devel, Mike Snitzer, J. corwin Coburn,
	John Wiele

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git dm-vdo-wip
head:   d4e7d305aaa9738d9606f986ad8f2f01edbb14b3
commit: 5a6d19abe1dc27648b64418df24ea0acef0f38d6 [55/90] dm vdo: enable configuration and building of dm-vdo
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20231102/202311021353.WMMPQspU-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231102/202311021353.WMMPQspU-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202311021353.WMMPQspU-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from drivers/md/dm-vdo-target.c:16:
>> drivers/md/dm-vdo/block-map.h:35:37: warning: 'UNMAPPED_BLOCK_MAP_ENTRY' defined but not used [-Wunused-const-variable=]
      35 | static const struct block_map_entry UNMAPPED_BLOCK_MAP_ENTRY = {
         |                                     ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/md/dm-vdo/block-map.h:34:38: warning: 'NO_PAGE' defined but not used [-Wunused-const-variable=]
      34 | static const physical_block_number_t NO_PAGE = 0xFFFFFFFFFFFFFFFF;
         |                                      ^~~~~~~


vim +/UNMAPPED_BLOCK_MAP_ENTRY +35 drivers/md/dm-vdo/block-map.h

fd98f3e3ccc645 Matthew Sakai 2023-10-26  33  
15deeca3859a19 Matthew Sakai 2023-10-26 @34  static const physical_block_number_t NO_PAGE = 0xFFFFFFFFFFFFFFFF;
15deeca3859a19 Matthew Sakai 2023-10-26 @35  static const struct block_map_entry UNMAPPED_BLOCK_MAP_ENTRY = {
15deeca3859a19 Matthew Sakai 2023-10-26  36  	.mapping_state = VDO_MAPPING_STATE_UNMAPPED & 0x0F,
15deeca3859a19 Matthew Sakai 2023-10-26  37  	.pbn_high_nibble = 0,
15deeca3859a19 Matthew Sakai 2023-10-26  38  	.pbn_low_word = __cpu_to_le32(VDO_ZERO_BLOCK & UINT_MAX),
15deeca3859a19 Matthew Sakai 2023-10-26  39  };
15deeca3859a19 Matthew Sakai 2023-10-26  40  

:::::: The code at line 35 was first introduced by commit
:::::: 15deeca3859a19abfaadd333fb3df7a45087ab3e dm vdo: implement the block map page cache

:::::: TO: Matthew Sakai <msakai@redhat.com>
:::::: CC: Mike Snitzer <snitzer@kernel.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-11-03  1:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-02  5:43 [device-mapper-dm:dm-vdo-wip 55/90] drivers/md/dm-vdo/block-map.h:35:37: warning: 'UNMAPPED_BLOCK_MAP_ENTRY' defined but not used kernel test robot
2023-11-02 15:11 ` Mike Snitzer
2023-11-03  1:51   ` Yujie Liu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.