[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [linux-2.6.18-xen] [IA64] Remove 'may be uninitialized' warning



# HG changeset patch
# User Alex Williamson <alex.williamson@xxxxxx>
# Date 1183664101 21600
# Node ID 52ec41fa9cd152107da8f5d1ce60b6019339e4b0
# Parent  291e24787f8b5d0fe0af1377bd37d38da78168c3
[IA64] Remove 'may be uninitialized' warning

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
---
 arch/ia64/xen/hypervisor.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 291e24787f8b -r 52ec41fa9cd1 arch/ia64/xen/hypervisor.c
--- a/arch/ia64/xen/hypervisor.c        Mon Jul 02 12:20:27 2007 -0600
+++ b/arch/ia64/xen/hypervisor.c        Thu Jul 05 13:35:01 2007 -0600
@@ -984,7 +984,6 @@ p2m_expose_init(void)
        int error = 0;
 #ifdef CONFIG_XEN_IA64_EXPOSE_P2M_USE_DTR
        int i;
-       unsigned long page_size;
        unsigned long log_page_size = 0;
 #endif
 
@@ -1013,6 +1012,7 @@ p2m_expose_init(void)
 
 #ifdef CONFIG_XEN_IA64_EXPOSE_P2M_USE_DTR
        if (xen_ia64_p2m_expose_use_dtr) {
+               unsigned long page_size = 0;
                unsigned long granule_pfn = 0;
                p2m_size = ((p2m_max_low_pfn - p2m_min_low_pfn +
                             PTRS_PER_PTE - 1) / PTRS_PER_PTE) << PAGE_SHIFT;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.