tree: https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git dm-vdo-wip head: 4047b38a6b9963fea70002e5547dae1cb02914f7 commit: 6e748cc6e193caaada6a4350a91882b5dbaaa635 [73/78] dm vdo: fix sparse warnings about missing statics config: s390-allmodconfig (https://download.01.org/0day-ci/archive/20240130/202401300735.kFp2omKb-lkp@xxxxxxxxx/config) compiler: s390-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240130/202401300735.kFp2omKb-lkp@xxxxxxxxx/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@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-kbuild-all/202401300735.kFp2omKb-lkp@xxxxxxxxx/ All warnings (new ones prefixed by >>): In file included from drivers/md/dm-vdo/encodings.h:17, from drivers/md/dm-vdo/vdo.h:18, from drivers/md/dm-vdo/action-manager.c:15: >> drivers/md/dm-vdo/constants.h:100:28: warning: 'MINIMUM_VDO_SLAB_JOURNAL_BLOCKS' defined but not used [-Wunused-const-variable=] 100 | static const block_count_t MINIMUM_VDO_SLAB_JOURNAL_BLOCKS = 2; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/md/dm-vdo/constants.h:97:28: warning: 'MAXIMUM_VDO_PHYSICAL_BLOCKS' defined but not used [-Wunused-const-variable=] 97 | static const block_count_t MAXIMUM_VDO_PHYSICAL_BLOCKS = 1024ULL * 1024 * 1024 * 64; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/md/dm-vdo/constants.h:94:28: warning: 'MAXIMUM_VDO_LOGICAL_BLOCKS' defined but not used [-Wunused-const-variable=] 94 | static const block_count_t MAXIMUM_VDO_LOGICAL_BLOCKS = 1024ULL * 1024 * 1024 * 1024; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -- In file included from drivers/md/dm-vdo/encodings.h:17, from drivers/md/dm-vdo/vdo.h:18, from drivers/md/dm-vdo/vdo.c:30: >> drivers/md/dm-vdo/constants.h:100:28: warning: 'MINIMUM_VDO_SLAB_JOURNAL_BLOCKS' defined but not used [-Wunused-const-variable=] 100 | static const block_count_t MINIMUM_VDO_SLAB_JOURNAL_BLOCKS = 2; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/md/dm-vdo/constants.h:97:28: warning: 'MAXIMUM_VDO_PHYSICAL_BLOCKS' defined but not used [-Wunused-const-variable=] 97 | static const block_count_t MAXIMUM_VDO_PHYSICAL_BLOCKS = 1024ULL * 1024 * 1024 * 64; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ >> drivers/md/dm-vdo/constants.h:94:28: warning: 'MAXIMUM_VDO_LOGICAL_BLOCKS' defined but not used [-Wunused-const-variable=] 94 | static const block_count_t MAXIMUM_VDO_LOGICAL_BLOCKS = 1024ULL * 1024 * 1024 * 1024; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/md/dm-vdo/vdo.c: In function 'vdo_make': drivers/md/dm-vdo/vdo.c:566:19: warning: '%s' directive output may be truncated writing up to 55 bytes into a region of size 16 [-Wformat-truncation=] 566 | "%s%u", MODULE_NAME, instance); | ^~ drivers/md/dm-vdo/vdo.c:565:9: note: 'snprintf' output between 2 and 66 bytes into a destination of size 16 565 | snprintf(vdo->thread_name_prefix, sizeof(vdo->thread_name_prefix), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 566 | "%s%u", MODULE_NAME, instance); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vim +/MINIMUM_VDO_SLAB_JOURNAL_BLOCKS +100 drivers/md/dm-vdo/constants.h 92 93 /** The maximum logical space is 4 petabytes, which is 1 terablock. */ > 94 static const block_count_t MAXIMUM_VDO_LOGICAL_BLOCKS = 1024ULL * 1024 * 1024 * 1024; 95 96 /** The maximum physical space is 256 terabytes, which is 64 gigablocks. */ > 97 static const block_count_t MAXIMUM_VDO_PHYSICAL_BLOCKS = 1024ULL * 1024 * 1024 * 64; 98 99 /** unit test minimum */ > 100 static const block_count_t MINIMUM_VDO_SLAB_JOURNAL_BLOCKS = 2; 101 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki