diff options
author | Tony Luck <tony.luck@intel.com> | 2006-12-12 14:18:55 -0500 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2006-12-12 14:18:55 -0500 |
commit | 8b9c106856d92c8266697328b148d115538b59ce (patch) | |
tree | a8c68bb48290d97ae942ca63efeb94856fb892ae /arch/ia64/mm/contig.c | |
parent | f889a26a703b03c774849685583cec7746738f3c (diff) |
[IA64] fix arch/ia64/mm/contig.c:235: warning: unused variable `nid'
This warning only shows up with CONFIG_VIRTUAL_MEM_MAP=y and
CONFIG_FLATMEM=y.
There is only one caller left for register_active_ranges() from the
contig.c code ... so it doesn't need to pick up the node number, the
node number is always zero.
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/mm/contig.c')
-rw-r--r-- | arch/ia64/mm/contig.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/ia64/mm/contig.c b/arch/ia64/mm/contig.c index fd103886bb0a..1e79551231b9 100644 --- a/arch/ia64/mm/contig.c +++ b/arch/ia64/mm/contig.c | |||
@@ -232,7 +232,6 @@ void __init | |||
232 | paging_init (void) | 232 | paging_init (void) |
233 | { | 233 | { |
234 | unsigned long max_dma; | 234 | unsigned long max_dma; |
235 | unsigned long nid = 0; | ||
236 | unsigned long max_zone_pfns[MAX_NR_ZONES]; | 235 | unsigned long max_zone_pfns[MAX_NR_ZONES]; |
237 | 236 | ||
238 | num_physpages = 0; | 237 | num_physpages = 0; |
@@ -244,7 +243,7 @@ paging_init (void) | |||
244 | max_zone_pfns[ZONE_NORMAL] = max_low_pfn; | 243 | max_zone_pfns[ZONE_NORMAL] = max_low_pfn; |
245 | 244 | ||
246 | #ifdef CONFIG_VIRTUAL_MEM_MAP | 245 | #ifdef CONFIG_VIRTUAL_MEM_MAP |
247 | efi_memmap_walk(register_active_ranges, &nid); | 246 | efi_memmap_walk(register_active_ranges, NULL); |
248 | efi_memmap_walk(find_largest_hole, (u64 *)&max_gap); | 247 | efi_memmap_walk(find_largest_hole, (u64 *)&max_gap); |
249 | if (max_gap < LARGE_GAP) { | 248 | if (max_gap < LARGE_GAP) { |
250 | vmem_map = (struct page *) 0; | 249 | vmem_map = (struct page *) 0; |