]> err.no Git - linux-2.6/commitdiff
x86: fix compile warning in init_64.c
authorYinghai Lu <yhlu.kernel@gmail.com>
Mon, 23 Jun 2008 21:02:36 +0000 (14:02 -0700)
committerIngo Molnar <mingo@elte.hu>
Tue, 8 Jul 2008 10:50:23 +0000 (12:50 +0200)
len is long and ret is only for NUMA

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/init_64.c

index 955dbc8abf6abc4e6bc6c73599840d82f7ae4d92..54a98407be3fea205cc8e2ff59b069e33f0b0c72 100644 (file)
@@ -830,9 +830,9 @@ int __init reserve_bootmem_generic(unsigned long phys, unsigned long len,
 {
 #ifdef CONFIG_NUMA
        int nid, next_nid;
+       int ret;
 #endif
        unsigned long pfn = phys >> PAGE_SHIFT;
-       int ret;
 
        if (pfn >= end_pfn) {
                /*
@@ -842,7 +842,7 @@ int __init reserve_bootmem_generic(unsigned long phys, unsigned long len,
                if (pfn < max_pfn_mapped)
                        return -EFAULT;
 
-               printk(KERN_ERR "reserve_bootmem: illegal reserve %lx %u\n",
+               printk(KERN_ERR "reserve_bootmem: illegal reserve %lx %lu\n",
                                phys, len);
                return -EFAULT;
        }