[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 37 of 45] gcc-4.6 compile fix: xen/arch/x86/x86_64/mm.c
# HG changeset patch # User Olaf Hering <olaf@xxxxxxxxx> # Date 1305824425 -7200 # Node ID 305d1c98f6f82bfec8efb7798520ff39371c1cdf # Parent 535fce9f4de3e0ecf630b2707d28c8c8bfbc0b67 gcc-4.6 compile fix: xen/arch/x86/x86_64/mm.c mm.c: In function 'setup_compat_m2p_table': mm.c:440:21: error: variable 'memflags' set but not used [-Werror=unused-but-set-variable] Signed-off-by: Olaf Hering <olaf@xxxxxxxxx> diff -r 535fce9f4de3 -r 305d1c98f6f8 xen/arch/x86/x86_64/mm.c --- a/xen/arch/x86/x86_64/mm.c Thu May 19 19:00:24 2011 +0200 +++ b/xen/arch/x86/x86_64/mm.c Thu May 19 19:00:25 2011 +0200 @@ -437,7 +437,7 @@ void destroy_m2p_mapping(struct mem_hota static int setup_compat_m2p_table(struct mem_hotadd_info *info) { unsigned long i, va, smap, emap, rwva, epfn = info->epfn; - unsigned int n, memflags; + unsigned int n; l3_pgentry_t *l3_ro_mpt = NULL; l2_pgentry_t *l2_ro_mpt = NULL; struct page_info *l1_pg; @@ -489,8 +489,6 @@ static int setup_compat_m2p_table(struct if ( n == CNT ) continue; - memflags = MEMF_node(phys_to_nid(i << PAGE_SHIFT)); - l1_pg = mfn_to_page(alloc_hotadd_mfn(info)); err = map_pages_to_xen(rwva, page_to_mfn(l1_pg), 1UL << PAGETABLE_ORDER, _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |