diff options
Diffstat (limited to 'arch/x86/mm/mmio-mod.c')
-rw-r--r-- | arch/x86/mm/mmio-mod.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/arch/x86/mm/mmio-mod.c b/arch/x86/mm/mmio-mod.c index 278998c1998f..3b04a0126121 100644 --- a/arch/x86/mm/mmio-mod.c +++ b/arch/x86/mm/mmio-mod.c | |||
@@ -48,7 +48,7 @@ struct trap_reason { | |||
48 | struct remap_trace { | 48 | struct remap_trace { |
49 | struct list_head list; | 49 | struct list_head list; |
50 | struct kmmio_probe probe; | 50 | struct kmmio_probe probe; |
51 | unsigned long phys; | 51 | resource_size_t phys; |
52 | unsigned long id; | 52 | unsigned long id; |
53 | }; | 53 | }; |
54 | 54 | ||
@@ -275,7 +275,7 @@ static void post(struct kmmio_probe *p, unsigned long condition, | |||
275 | put_cpu_var(pf_reason); | 275 | put_cpu_var(pf_reason); |
276 | } | 276 | } |
277 | 277 | ||
278 | static void ioremap_trace_core(unsigned long offset, unsigned long size, | 278 | static void ioremap_trace_core(resource_size_t offset, unsigned long size, |
279 | void __iomem *addr) | 279 | void __iomem *addr) |
280 | { | 280 | { |
281 | static atomic_t next_id; | 281 | static atomic_t next_id; |
@@ -319,13 +319,14 @@ not_enabled: | |||
319 | spin_unlock_irq(&trace_lock); | 319 | spin_unlock_irq(&trace_lock); |
320 | } | 320 | } |
321 | 321 | ||
322 | void | 322 | void mmiotrace_ioremap(resource_size_t offset, unsigned long size, |
323 | mmiotrace_ioremap(unsigned long offset, unsigned long size, void __iomem *addr) | 323 | void __iomem *addr) |
324 | { | 324 | { |
325 | if (!is_enabled()) /* recheck and proper locking in *_core() */ | 325 | if (!is_enabled()) /* recheck and proper locking in *_core() */ |
326 | return; | 326 | return; |
327 | 327 | ||
328 | pr_debug(NAME "ioremap_*(0x%lx, 0x%lx) = %p\n", offset, size, addr); | 328 | pr_debug(NAME "ioremap_*(0x%llx, 0x%lx) = %p\n", |
329 | (unsigned long long)offset, size, addr); | ||
329 | if ((filter_offset) && (offset != filter_offset)) | 330 | if ((filter_offset) && (offset != filter_offset)) |
330 | return; | 331 | return; |
331 | ioremap_trace_core(offset, size, addr); | 332 | ioremap_trace_core(offset, size, addr); |