IA64: Move DMA variable into the #ifdef CONFIG_ZONE_DMA section This avoids a warning because max_dma is either not used or never referred to. Signed-off-by: Christoph Lameter Index: linux-2.6.18-mm3/arch/ia64/mm/discontig.c =================================================================== --- linux-2.6.18-mm3.orig/arch/ia64/mm/discontig.c 2006-10-05 22:42:34.000000000 -0500 +++ linux-2.6.18-mm3/arch/ia64/mm/discontig.c 2006-10-06 01:11:53.957155616 -0500 @@ -682,13 +682,11 @@ static __init int count_node_pages(unsig */ void __init paging_init(void) { - unsigned long max_dma; unsigned long pfn_offset = 0; unsigned long max_pfn = 0; int node; unsigned long max_zone_pfns[MAX_NR_ZONES]; - max_dma = virt_to_phys((void *) MAX_DMA_ADDRESS) >> PAGE_SHIFT; arch_sparse_init(); @@ -714,7 +712,8 @@ void __init paging_init(void) } #ifdef CONFIG_ZONE_DMA - max_zone_pfns[ZONE_DMA] = max_dma; + max_zone_pfns[ZONE_DMA] = + virt_to_phys((void *) MAX_DMA_ADDRESS) >> PAGE_SHIFT; #endif max_zone_pfns[ZONE_NORMAL] = max_pfn; free_area_init_nodes(max_zone_pfns);