aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/mm/ioremap.c
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-02-01 11:49:43 -0500
committerIngo Molnar <mingo@elte.hu>2008-02-01 11:49:43 -0500
commit93809be8b140c101d27f00d0a622ebac90bc7a67 (patch)
tree2b5effc7e8d77e6f26a271838968cf793207767b /arch/x86/mm/ioremap.c
parent4a1485131a6038ba5382f407db48badc332672c4 (diff)
x86: fixes for lookup_address args
Signedness mismatches in level argument. Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/mm/ioremap.c')
-rw-r--r--arch/x86/mm/ioremap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/mm/ioremap.c b/arch/x86/mm/ioremap.c
index a177d76e1c53..c004d94608fd 100644
--- a/arch/x86/mm/ioremap.c
+++ b/arch/x86/mm/ioremap.c
@@ -75,7 +75,8 @@ static int ioremap_change_attr(unsigned long paddr, unsigned long size,
75{ 75{
76 unsigned long vaddr = (unsigned long)__va(paddr); 76 unsigned long vaddr = (unsigned long)__va(paddr);
77 unsigned long nrpages = size >> PAGE_SHIFT; 77 unsigned long nrpages = size >> PAGE_SHIFT;
78 int err, level; 78 unsigned int level;
79 int err;
79 80
80 /* No change for pages after the last mapping */ 81 /* No change for pages after the last mapping */
81 if ((paddr + size - 1) >= (max_pfn_mapped << PAGE_SHIFT)) 82 if ((paddr + size - 1) >= (max_pfn_mapped << PAGE_SHIFT))