x86: use WARN() in arch/x86/mm/ioremap.c

Use WARN() instead of a printk+WARN_ON() pair; this way the message
becomes part of the warning section for better reporting/collection.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Cc: akpm@linux-foundation.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>

authored by Arjan van de Ven and committed by Ingo Molnar 0c072bb4 85d57797

+3 -5
+3 -5
arch/x86/mm/ioremap.c
··· 553 553 { 554 554 if (!early_ioremap_nested) 555 555 return 0; 556 - 557 - printk(KERN_WARNING 556 + WARN(1, KERN_WARNING 558 557 "Debug warning: early ioremap leak of %d areas detected.\n", 559 - early_ioremap_nested); 558 + early_ioremap_nested); 560 559 printk(KERN_WARNING 561 - "please boot with early_ioremap_debug and report the dmesg.\n"); 562 - WARN_ON(1); 560 + "please boot with early_ioremap_debug and report the dmesg.\n"); 563 561 564 562 return 1; 565 563 }