]> xenbits.xensource.com Git - xenclient/kernel.git/commitdiff
i386: Fix build warning.
authorKeir Fraser <keir@xensource.com>
Thu, 11 Oct 2007 15:03:24 +0000 (16:03 +0100)
committerKeir Fraser <keir@xensource.com>
Thu, 11 Oct 2007 15:03:24 +0000 (16:03 +0100)
Signed-off-by: Keir Fraser <keir@xensource.com>
arch/i386/mm/hypervisor.c

index 9c8baafbce3fddb0aaf64f61947521b1acb01677..ea7db523ad3cfda601ff10cff091cf1ca9c29619 100644 (file)
@@ -513,8 +513,9 @@ int xen_limit_pages_to_max_mfn(
 
        /* 3. Map the new pages in place of old pages. */
        for (i = 0, nr_mcl = 0; i < (1UL<<order); i++) {
+               unsigned long pfn;
                page = &pages[i];
-               unsigned long pfn = page_to_pfn(page);
+               pfn = page_to_pfn(page);
 
                frame = success ? out_frames[i] : in_frames[i];