|
@@ -227,7 +227,8 @@ phys_addr_t __init_memblock memblock_find_in_range_node(phys_addr_t size,
|
|
|
* so we use WARN_ONCE() here to see the stack trace if
|
|
|
* fail happens.
|
|
|
*/
|
|
|
- WARN_ONCE(1, "memblock: bottom-up allocation failed, memory hotunplug may be affected\n");
|
|
|
+ WARN_ONCE(IS_ENABLED(CONFIG_MEMORY_HOTREMOVE),
|
|
|
+ "memblock: bottom-up allocation failed, memory hotremove may be affected\n");
|
|
|
}
|
|
|
|
|
|
return __memblock_find_range_top_down(start, end, size, align, nid,
|