patch-2.4.23 linux-2.4.23/arch/x86_64/mm/ioremap.c

Next file: linux-2.4.23/arch/x86_64/mm/k8topology.c
Previous file: linux-2.4.23/arch/x86_64/mm/fault.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.22/arch/x86_64/mm/ioremap.c linux-2.4.23/arch/x86_64/mm/ioremap.c
@@ -125,12 +125,12 @@
 	 */
 	if (phys_addr < virt_to_phys(high_memory)) {
 		char *t_addr, *t_end;
-		struct page *page;
 
 		t_addr = __va(phys_addr);
 		t_end = t_addr + (size - 1);
 	   
 #ifndef CONFIG_DISCONTIGMEM
+		struct page *page;
 		for(page = virt_to_page(t_addr); page <= virt_to_page(t_end); page++)
 			if(!PageReserved(page))
 				return NULL;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)