dirty_log_perf_test.c:284:17: warning: 'bitmaps' may be used uninitialized

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.oe-kbuild
Message-ID <[email protected]>
:::::: 
:::::: Manual check reason: "low confidence bisect report"
:::::: Manual check reason: "likely FALSE maybe-used-uninitialized warning on old compiler"
:::::: 

BCC: [email protected]
CC: [email protected]
TO: Leonardo Bras <[email protected]>
CC: 0day robot <[email protected]>

tree:   https://github.com/intel-lab-lkp/linux/commits/Leonardo-Bras/KVM-selftests-memstress-Add-option-to-enable-dirty-ring-on-VM-creation/20260813-140437
head:   441c3e64a7ec5b92b4fd0a61d6181f8ac74ad302
commit: 441c3e64a7ec5b92b4fd0a61d6181f8ac74ad302 KVM: selftests: dirty_log_perf_test: Add dirty-ring support
date:   3 days ago
:::::: branch date: 3 days ago
:::::: commit date: 3 days ago
config: arm64-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20260816/[email protected]/config)
compiler: aarch64-linux-gnu-gcc (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260816/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/r/[email protected]/

Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings

All warnings (new ones prefixed by >>):

   dirty_log_perf_test.c: In function 'run_test':
>> dirty_log_perf_test.c:284:17: warning: 'bitmaps' may be used uninitialized [-Wmaybe-uninitialized]
     284 |                 memstress_get_dirty_log(vm, bitmaps, p->slots);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   dirty_log_perf_test.c:174:25: note: 'bitmaps' was declared here
     174 |         unsigned long **bitmaps;
         |                         ^~~~~~~
   At top level:
   cc1: note: unrecognized command-line option '-Wno-gnu-variable-sized-type-not-at-end' may have been intended to silence earlier diagnostics

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.