minor gcc4 fixes
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 <[email protected]>
Signature · 4 lines
Jerone Young IBM Linux Technology Center [email protected] 512-838-1157 (T/L: 678-1157)
common/grant_table.c renamed from common/grant_table.c.old +2 -1
@@ -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.
arch/x86/shadow.c renamed from arch/x86/shadow.c.old +2 -1
@@ -1594,7 +1594,8 @@ static inline unsigned longshadow_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;
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel