x86: remove debug code from arch_add_memory()
authorGary Hade <garyhade@us.ibm.com>
Tue, 28 Oct 2008 23:43:14 +0000 (16:43 -0700)
committerIngo Molnar <mingo@elte.hu>
Wed, 29 Oct 2008 08:29:22 +0000 (09:29 +0100)
Impact: remove incorrect WARN_ON(1)

Gets rid of dmesg spam created during physical memory hot-add which
will very likely confuse users.  The change removes what appears to
be debugging code which I assume was unintentionally included in:

  x86: arch/x86/mm/init_64.c printk fixes
  commit 10f22dde556d1ed41d55355d1fb8ad495f9810c8

Signed-off-by: Gary Hade <garyhade@us.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/init_64.c

index ebe1811e5b1ef300dfc9b4123dc7349e8c0856f4..9db01db6e3cdf4cb0e11444d49e4d598be280b55 100644 (file)
@@ -858,7 +858,7 @@ int arch_add_memory(int nid, u64 start, u64 size)
                max_pfn_mapped = last_mapped_pfn;
 
        ret = __add_pages(zone, start_pfn, nr_pages);
-       WARN_ON(1);
+       WARN_ON_ONCE(ret);
 
        return ret;
 }