https://bugzilla.kernel.org/show_bug.cgi?id=207173 Tony Cook (tony-cook@xxxxxxxxxxx) changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tony-cook@xxxxxxxxxxx --- Comment #10 from Tony Cook (tony-cook@xxxxxxxxxxx) --- arch/x86/kvm/../../../virt/kvm/kvm_main.c: In function ‘__kvm_gfn_to_hva_cache_init’: arch/x86/kvm/../../../virt/kvm/kvm_main.c:2236:42: error: ‘nr_pages_avail’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 2236 | for ( ; start_gfn <= end_gfn; start_gfn += nr_pages_avail) { cc1: all warnings being treated as errors make[2]: *** [scripts/Makefile.build:267: arch/x86/kvm/../../../virt/kvm/kvm_main.o] Error 1 make[1]: *** [scripts/Makefile.build:505: arch/x86/kvm] Error 2 make[1]: *** Waiting for unfinished jobs.... Nothing non-standard here, just trying to build the latest kernel 5.6.11 with # Compiler: gcc (GCC) 10.0.1 20200430 (Red Hat 10.0.1-0.14) I agree that there is in fact no error here as the nr_pages_avail is set before it is used to increment start_gfn, or at any rate one can infer that it might be set by the procedure call that passes it by reference. Nonetheless it is more than just annoying when this breaks my build. Either change the default setting and disable werror for this module or make the uneccessary assignment just for my pleasure. -- You are receiving this mail because: You are watching the assignee of the bug.