x86: remove debug code from arch_add_memory()
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 10f22dde55
Signed-off-by: Gary Hade <garyhade@us.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
1d6cf1feb8
commit
fe8b868ecc
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue