zhang / rpms / kernel

Forked from rpms/kernel 5 years ago
Clone
e293be
--- a/arch/x86/mm/ioremap.c	2017-08-06 11:10:56.224088715 -0700
e293be
+++ b/arch/x86/mm/ioremap.c	2017-08-06 11:16:09.797088715 -0700
e293be
@@ -115,8 +115,9 @@
e293be
 	last_pfn = last_addr >> PAGE_SHIFT;
e293be
 	if (walk_system_ram_range(pfn, last_pfn - pfn + 1, NULL,
e293be
 					  __ioremap_check_ram) == 1) {
e293be
-		WARN_ONCE(1, "ioremap on RAM at 0x%llx - 0x%llx\n",
e293be
-					phys_addr, last_addr);
e293be
+		WARN_ONCE(1, "ioremap on RAM at 0x%lx - 0x%lx\n",
e293be
+				(unsigned long int)phys_addr,
e293be
+				(unsigned long int)last_addr);
e293be
 		return NULL;
e293be
 	}
e293be