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-changelog

[Xen-changelog] The problem is that GCC4 is seeing is that variable such

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] The problem is that GCC4 is seeing is that variable such as frame (in
From: BitKeeper Bot <riel@xxxxxxxxxxx>
Date: Mon, 18 Apr 2005 21:40:44 +0000
Delivery-date: Tue, 19 Apr 2005 01:05:28 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: Xen Development List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
ChangeSet 1.1319, 2005/04/18 22:40:44+01:00, iap10@xxxxxxxxxxxxxxxxxxxxx

        The problem is that GCC4 is seeing is that variable such as frame (in
        grant_table.c) is passed into a function without initialization. Again 
for the variable sl1mfn  (in shadow.c) does the same thing. So really the 
patches should be:
        
        Signed-off-by: Jerone Young <jyoung5@xxxxxxxxxx>



 arch/x86/shadow.c    |    2 +-
 common/grant_table.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)


diff -Nru a/xen/arch/x86/shadow.c b/xen/arch/x86/shadow.c
--- a/xen/arch/x86/shadow.c     2005-04-18 21:05:44 -04:00
+++ b/xen/arch/x86/shadow.c     2005-04-18 21:05:44 -04:00
@@ -1651,7 +1651,7 @@
 shadow_make_snapshot(
     struct domain *d, unsigned long gpfn, unsigned long gmfn)
 {
-    unsigned long smfn, sl1mfn;
+    unsigned long smfn, sl1mfn = 0;
     void *original, *snapshot;
     u32 min_max = 0;
     int min, max, length;
diff -Nru a/xen/common/grant_table.c b/xen/common/grant_table.c
--- a/xen/common/grant_table.c  2005-04-18 21:05:44 -04:00
+++ b/xen/common/grant_table.c  2005-04-18 21:05:44 -04:00
@@ -311,7 +311,7 @@
     struct exec_domain   *led;
     u16                   dev_hst_ro_flags;
     int                   handle;
-    unsigned long         frame, host_virt_addr;
+    unsigned long         frame = 0, host_virt_addr;
     int                   rc;
 
     /* Returns 0 if TLB flush / invalidate required by caller.

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] The problem is that GCC4 is seeing is that variable such as frame (in, BitKeeper Bot <=