From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: =?utf-8?q?Compliling_Xen_4=2E5=2E0_Fails_with_error?= =?utf-8?q?=3A_=E2=80=98bufioreq=5Fpfn=E2=80=99_may_be_used_uninitialised_?= =?utf-8?q?in_this_function__=5B-Werror=3Duninitialized=5D?= Date: Mon, 16 Mar 2015 10:00:48 +0000 Message-ID: <1426500048.18247.7.camel@citrix.com> References: <1426264521.32572.176.camel@citrix.com> <1430082348.3376440.1426266319145.JavaMail.yahoo@mail.yahoo.com> <101071002.3624992.1426460366726.JavaMail.yahoo@mail.yahoo.com> <9AAE0902D5BC7E449B7C8E4E778ABCD0258434BF@AMSPEX01CL01.citrite.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <9AAE0902D5BC7E449B7C8E4E778ABCD0258434BF@AMSPEX01CL01.citrite.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Paul Durrant Cc: Ian Murray , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Mon, 2015-03-16 at 09:45 +0000, Paul Durrant wrote: > Those line numbers don't work for me. I did a checkout of > RELEASE-4.5.0 and, whilst bufioreq_pfn is indeed declared on line 718, > I see no reference to it on line 487. Also, if I compile debug=n I see > no problem. Is it possible you don't have a clean checkout of 4.5.0? > What version of gcc are you using? Doing git show RELEASE-4.5.0:xen/arch/x86/hvm/hvm.c > x gets me a file x where line 487 is the first line (defn of "i") of: static void hvm_free_ioreq_gmfn(struct domain *d, unsigned long gmfn) { unsigned int i = gmfn - d->arch.hvm_domain.ioreq_gmfn.base; clear_bit(i, &d->arch.hvm_domain.ioreq_gmfn.mask); } My guess was that it was the call from the fial3 label in hvm_ioreq_server_map_pages(). I can see how gcc wouldn't always be able to reason about it always being initialised. Ian.