x86: ioremap of 64-bit resource on 32-bit kernel fix
authorIngo Molnar <mingo@elte.hu>
Tue, 25 Mar 2008 07:31:17 +0000 (08:31 +0100)
committerIngo Molnar <mingo@elte.hu>
Thu, 17 Apr 2008 15:41:30 +0000 (17:41 +0200)
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/ioremap.c

index 7338c5d3dd377ef98dfccd6fa7b4422974111844..c590fd200e297e892d1552b8b575e2cf7b8604f7 100644 (file)
@@ -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,
                               unsigned long prot_val)
 {
-       unsigned long pfn, offset, last_addr, vaddr;
+       unsigned long pfn, offset, vaddr;
+       resource_size_t last_addr;
        struct vm_struct *area;
        unsigned long new_prot_val;
        pgprot_t prot;