WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] xen/arch/x86/vm-io passing unintialized variable to

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] xen/arch/x86/vm-io passing unintialized variable to function
From: Jerone Young <jerone@xxxxxxxxx>
Date: Tue, 5 Jul 2005 16:47:27 -0500
Delivery-date: Tue, 05 Jul 2005 21:46:16 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=XGBUd0Npr++igXuDOBOWUSvoe4zgaJyXSItfoTJtiCVAfw1tFAv6ythb/cUsp0SNkrVlbBFuxkdkYL3RQuaf5MJkcgAEh5EniJE4ZqJQTRWN5/UvZErXxOpt2rAMF0LtpbDR5md/RHEGoNjVMtK58euYrsw3MI8iq4cuVWEK3lc=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Reply-to: Jerone Young <jerone@xxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Oh gcc4 ....how you complain soo. This patch fixes compile with gcc4
where an unintialized variable is used in a function.

Signed-off-by: Jerone Young <jerone@xxxxxxxxx>

--- xen/arch/x86/vmx_io.c.old   2005-07-05 16:44:01.000000000 -0500
+++ xen/arch/x86/vmx_io.c       2005-07-05 16:44:20.000000000 -0500
@@ -621,7 +621,7 @@ static inline int irq_masked(unsigned lo

 void vmx_intr_assist(struct vcpu *v)
 {
-    int intr_type;
+    int intr_type = 0;
     int highest_vector = find_highest_pending_irq(v, &intr_type);
     unsigned long intr_fields, eflags, interruptibility, cpu_exec_control;

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] xen/arch/x86/vm-io passing unintialized variable to function, Jerone Young <=