Re: [RFC PATCH-for-7.0] hw/i386/amd_iommu: Fix maybe-uninitialized error with GCC 12

2022-03-21 Thread Paolo Bonzini
On 3/18/22 15:03, Philippe Mathieu-Daudé wrote: +qemu-trivial@ Laurent, please do not merge this patch as I've sent a replacement and I'll take care of merging it. Paolo On 18/3/22 01:41, Philippe Mathieu-Daudé wrote: From: Philippe Mathieu-Daudé Initialize 'oldlevel' early to avoid on

Re: [RFC PATCH-for-7.0] hw/i386/amd_iommu: Fix maybe-uninitialized error with GCC 12

2022-03-18 Thread Philippe Mathieu-Daudé
+qemu-trivial@ On 18/3/22 01:41, Philippe Mathieu-Daudé wrote: From: Philippe Mathieu-Daudé Initialize 'oldlevel' early to avoid on Debian/sid: FAILED: libqemu-x86_64-softmmu.fa.p/hw_i386_amd_iommu.c.o In function 'pte_get_page_mask', inlined from 'amdvi_page_walk' at hw/i386/amd

[RFC PATCH-for-7.0] hw/i386/amd_iommu: Fix maybe-uninitialized error with GCC 12

2022-03-17 Thread Philippe Mathieu-Daudé
From: Philippe Mathieu-Daudé Initialize 'oldlevel' early to avoid on Debian/sid: FAILED: libqemu-x86_64-softmmu.fa.p/hw_i386_amd_iommu.c.o In function 'pte_get_page_mask', inlined from 'amdvi_page_walk' at hw/i386/amd_iommu.c:945:25, inlined from 'amdvi_do_translate' at hw/i386/a