# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1305824432 -7200
# Node ID f64bb486b83ccefb1e1352db56f898b8272ad56d
# Parent 2e6175d0996618f80fd26106257d6cb8b61b046d
gcc-4.6 compile fix: xen/arch/x86/mm/shadow/multi.c
multi.c: In function 'set_shadow_status':
multi.c:127:9: error: variable 'res' set but not used
[-Werror=unused-but-set-variable]
multi.c: In function 'sh_rm_write_access_from_sl1p__guest_2':
multi.c:4434:9: error: variable 'r' set but not used
[-Werror=unused-but-set-variable]
Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>
diff -r 2e6175d09966 -r f64bb486b83c xen/arch/x86/mm/shadow/multi.c
--- a/xen/arch/x86/mm/shadow/multi.c Thu May 19 19:00:31 2011 +0200
+++ b/xen/arch/x86/mm/shadow/multi.c Thu May 19 19:00:32 2011 +0200
@@ -124,7 +124,7 @@ set_shadow_status(struct vcpu *v, mfn_t
/* Put a shadow into the hash table */
{
struct domain *d = v->domain;
- int res;
+ int res __attribute__((unused));
SHADOW_PRINTK("d=%d, v=%d, gmfn=%05lx, type=%08x, smfn=%05lx\n",
d->domain_id, v->vcpu_id, mfn_x(gmfn),
@@ -4431,7 +4431,7 @@ sh_update_cr3(struct vcpu *v, int do_loc
int sh_rm_write_access_from_sl1p(struct vcpu *v, mfn_t gmfn,
mfn_t smfn, unsigned long off)
{
- int r;
+ int r __attribute__((unused));
shadow_l1e_t *sl1p, sl1e;
struct page_info *sp;
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|