From: "Christoph Egger" Subject: [PATCH] Build fix with gcc 4.1 Date: Wed, 12 Sep 2007 10:53:34 +0200 Message-ID: <200709121053.34887.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_Ok65G6WOiTrxKJv" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --Boundary-00=_Ok65G6WOiTrxKJv Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline The attached patch fixes these build errors I see with gcc 4.1: cc1: warnings being treated as errors hvm.c: In function '__hvm_copy': hvm.c:687: warning: 'p2mt' may be used uninitialized in this function cc1: warnings being treated as errors hvm.c: In function 'hvm_set_cr3': /home/cegger/src/xen-mca-unstable.hg/xen/include/asm/p2m.h:122:=20 warning: 'p2mt' is used uninitialized in this function cc1: warnings being treated as errors hvm.c: In function 'hvm_set_cr0': /home/cegger/src/xen-mca-unstable.hg/xen/include/asm/p2m.h:122:=20 warning: 'p2mt' is used uninitialized in this function cc1: warnings being treated as errors svm.c: In function 'svm_vmexit_handler': /home/cegger/src/xen-mca-unstable.hg/xen/include/asm/p2m.h:122:=20 warning: 'p2mt' is used uninitialized in this function Signed-off-by: Christoph Egger =2D-=20 AMD Saxony, Dresden, Germany Operating System Research Center Legal Information: AMD Saxony Limited Liability Company & Co. KG Sitz (Gesch=E4ftsanschrift): Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland Registergericht Dresden: HRA 4896 vertretungsberechtigter Komplement=E4r: AMD Saxony LLC (Sitz Wilmington, Delaware, USA) Gesch=E4ftsf=FChrer der AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy --Boundary-00=_Ok65G6WOiTrxKJv Content-Type: text/x-diff; charset=iso-8859-1; name=xen_build.diff Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=xen_build.diff diff -r fec8b52b1a7f xen/include/asm-x86/p2m.h --- a/xen/include/asm-x86/p2m.h Tue Sep 11 19:11:02 2007 +0100 +++ b/xen/include/asm-x86/p2m.h Wed Sep 12 10:48:39 2007 +0200 @@ -119,7 +119,7 @@ static inline mfn_t gfn_to_mfn_current(u if ( ret == 0 ) { p2mt = p2m_flags_to_type(l1e_get_flags(l1e)); - ASSERT(l1e_get_pfn(l1e) != INVALID_MFN || !p2m_is_ram(*t)); + ASSERT(l1e_get_pfn(l1e) != INVALID_MFN || !p2m_is_ram(p2mt)); if ( p2m_is_valid(p2mt) ) mfn = _mfn(l1e_get_pfn(l1e)); else --Boundary-00=_Ok65G6WOiTrxKJv Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_Ok65G6WOiTrxKJv--