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
|