Re: [PATCH] kvm: fix maybe-uninitialized compiler warning

From: Xiao Guangrong
Date: Sun Sep 06 2015 - 03:37:00 EST

On 09/05/2015 05:07 AM, Clemens Gruber wrote:
Fixes the following compiler warning, occuring with GCC 5.2.0:

arch/x86/kvm/mmu.c: In function âhandle_mmio_page_fault_commonâ:
arch/x86/kvm/mmu.c:3332:9: warning: âleafâ may be used uninitialized in
function [-Wmaybe-uninitialized]
while (root >= leaf) {
arch/x86/kvm/mmu.c:3304:12: note: âleafâ was declared here
int root, leaf;

Clemens, this is a know issue, please refer to:
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at