Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 245677
b: refs/heads/master
c: c7a7b81
h: refs/heads/master
i:
  245675: 87a2878
v: v3
  • Loading branch information
Tim Gardner authored and Ingo Molnar committed Apr 29, 2011
1 parent ec2c018 commit 3e43caf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 64d21fc194e12bdf7347019bf10325a4b3d77e7b
refs/heads/master: c7a7b814c9dca9ee01b38e63b4a46de87156d3b6
14 changes: 7 additions & 7 deletions trunk/arch/x86/mm/ioremap.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,6 @@ static void __iomem *__ioremap_caller(resource_size_t phys_addr,
if (is_ISA_range(phys_addr, last_addr))
return (__force void __iomem *)phys_to_virt(phys_addr);

/*
* Check if the request spans more than any BAR in the iomem resource
* tree.
*/
WARN_ONCE(iomem_map_sanity_check(phys_addr, size),
KERN_INFO "Info: mapping multiple BARs. Your kernel is fine.");

/*
* Don't allow anybody to remap normal RAM that we're using..
*/
Expand Down Expand Up @@ -170,6 +163,13 @@ static void __iomem *__ioremap_caller(resource_size_t phys_addr,
ret_addr = (void __iomem *) (vaddr + offset);
mmiotrace_ioremap(unaligned_phys_addr, unaligned_size, ret_addr);

/*
* Check if the request spans more than any BAR in the iomem resource
* tree.
*/
WARN_ONCE(iomem_map_sanity_check(unaligned_phys_addr, unaligned_size),
KERN_INFO "Info: mapping multiple BARs. Your kernel is fine.");

return ret_addr;
err_free_area:
free_vm_area(area);
Expand Down

0 comments on commit 3e43caf

Please sign in to comment.