From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerone Young Subject: minor gcc4 fixes Date: Mon, 11 Apr 2005 13:36:49 -0500 Message-ID: <1113244609.5172.4.camel@thinkpad> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-S8sKI5HjrZqAbzOfy7Cc" 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 List-Id: xen-devel@lists.xenproject.org --=-S8sKI5HjrZqAbzOfy7Cc Content-Type: text/plain Content-Transfer-Encoding: 7bit These patches initialize unsigned longs that are used in xen. GCC4 complains about using unsigned longs that are not initialized before use. Signed-off-by: Jerone Young -- Jerone Young IBM Linux Technology Center jyoung5@us.ibm.com 512-838-1157 (T/L: 678-1157) --=-S8sKI5HjrZqAbzOfy7Cc Content-Disposition: attachment; filename=gcc4_fix_1.diff Content-Type: text/x-patch; name=gcc4_fix_1.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit --- xen/common/grant_table.c.old 2005-04-11 12:02:40.000000000 -0500 +++ xen/common/grant_table.c 2005-04-11 12:03:37.000000000 -0500 @@ -311,7 +311,8 @@ __gnttab_map_grant_ref( struct exec_domain *led; u16 dev_hst_ro_flags; int handle; - unsigned long frame, host_virt_addr; + unsigned long host_virt_addr = 0; + unsigned long frame = 0; int rc; /* Returns 0 if TLB flush / invalidate required by caller. --=-S8sKI5HjrZqAbzOfy7Cc Content-Disposition: attachment; filename=gcc4_fix_2.diff Content-Type: text/x-patch; name=gcc4_fix_2.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit --- xen/arch/x86/shadow.c.old 2005-04-11 12:04:20.000000000 -0500 +++ xen/arch/x86/shadow.c 2005-04-11 12:05:41.000000000 -0500 @@ -1594,7 +1594,8 @@ static inline unsigned long shadow_make_snapshot( struct domain *d, unsigned long gpfn, unsigned long gmfn) { - unsigned long smfn, sl1mfn; + unsigned long smfn = 0; + unsigned long sl1mfn = 0; void *original, *snapshot; u32 min_max = 0; int min, max, length; --=-S8sKI5HjrZqAbzOfy7Cc 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 --=-S8sKI5HjrZqAbzOfy7Cc--