Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 80452
b: refs/heads/master
c: d690b2a
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar committed Jan 30, 2008
1 parent b20de35 commit d086ec1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 793b24a2dd0d695c748efba7b2295e7f9fdd3139
refs/heads/master: d690b2afd5a7a02816386aa704c8c0b1aca8d2de
16 changes: 16 additions & 0 deletions trunk/arch/x86/mm/ioremap_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,22 @@ static inline void __init early_clear_fixmap(enum fixed_addresses idx)

int __initdata early_ioremap_nested;

static int __init check_early_ioremap_leak(void)
{
if (!early_ioremap_nested)
return 0;

printk(KERN_WARNING
"Debug warning: early ioremap leak of %d areas detected.\n",
early_ioremap_nested);
printk(KERN_WARNING
"please boot with early_ioremap_debug and report the dmesg.\n");
WARN_ON(1);

return 1;
}
late_initcall(check_early_ioremap_leak);

void __init *early_ioremap(unsigned long phys_addr, unsigned long size)
{
unsigned long offset, last_addr;
Expand Down

0 comments on commit d086ec1

Please sign in to comment.