Skip to content

Commit

Permalink
x86: fix compile warning in init_64.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yinghai Lu authored and Ingo Molnar committed Jul 8, 2008
1 parent 3eb11ed commit 6a07a0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/x86/mm/init_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
/*
Expand All @@ -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;
}
Expand Down

0 comments on commit 6a07a0e

Please sign in to comment.