Skip to contentSkip to conversation

last-minute patch for 2.6.25-stable

stable Chuck Ebbert 2 participants 2 messages Jul 31, 2008 – Aug 2, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

I meant to send this yesterday but didn't get to it.

From: Ingo Molnar <[email protected]>
Date: Tue, 25 Mar 2008 07:31:17 +0000 (+0100)
Subject: x86: ioremap of 64-bit resource on 32-bit kernel fix
X-Git-Tag: v2.6.26-rc1~1154^2~109
X-Git-Url: http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Ftorvalds%2Flinux-2.6.git;a=commitdiff_plain;h=756a6c68556600aec9460346332884d891d5beb4

x86: ioremap of 64-bit resource on 32-bit kernel fix

---

arch/x86/mm/ioremap.c +3 -2
index 7338c5d..c590fd2 100644
@@ -47,7 +47,7 @@ static inline int phys_addr_valid(unsigned long addr)
 
 int page_is_ram(unsigned long pagenr)
 {
-	unsigned long addr, end;
+	resource_size_t addr, end;
 	int i;
 
 	/*
@@ -120,7 +120,8 @@ int ioremap_change_attr(unsigned long vaddr, unsigned long size,
 static void __iomem *__ioremap(resource_size_t phys_addr, unsigned long size,
 			       enum ioremap_mode mode)
 {
-	unsigned long pfn, offset, last_addr, vaddr;
+	unsigned long pfn, offset, vaddr;
+	resource_size_t last_addr;
 	struct vm_struct *area;
 	pgprot_t prot;
 
#1 lore raw
Quoted 1 line · Chuck Ebbert

I meant to send this yesterday but didn't get to it.

Now added, thanks.

greg k-h