From: Borislav Petkov Subject: KVM build warnings Date: Mon, 30 May 2011 11:46:04 +0200 Message-ID: <20110530094604.GC21833@liondog.tnic> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org To: Takuya Yoshikawa Return-path: Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org I get the following In file included from arch/x86/kvm/mmu.c:2856: arch/x86/kvm/paging_tmpl.h: In function =E2=80=98paging32_walk_addr_gen= eric=E2=80=99: arch/x86/kvm/paging_tmpl.h:124: warning: =E2=80=98ptep_user=E2=80=99 ma= y be used uninitialized in this function In file included from arch/x86/kvm/mmu.c:2852: arch/x86/kvm/paging_tmpl.h: In function =E2=80=98paging64_walk_addr_gen= eric=E2=80=99: arch/x86/kvm/paging_tmpl.h:124: warning: =E2=80=98ptep_user=E2=80=99 ma= y be used uninitialized in this function when building -rc1. It looks like it is caused by 6e2ca7d1802bf8ed9908435e34daa116662e7790 and sticking uninitialized_var= () around the ptep_user declaration looks like the easiest solution. But the code= should still be audited by someone who's familiar with it whether shutting up = the compiler doesn't cause an actual bug. Thanks. --=20 Regards/Gruss, Boris.