of: reserved-memory: Warn for missing static reserved memory regions
commit81dfedd523upstream. For child node of /reserved-memory, its property 'reg' may contain multiple regions, but fdt_scan_reserved_mem_reg_nodes() only takes into account the first region, and miss remaining regions. But there are no simple approach to fix it, so give user warning message when miss remaining regions. Fixes:8a6e02d0c0("of: reserved_mem: Restructure how the reserved memory regions are processed") Cc: stable@vger.kernel.org Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com> Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> Link: https://lore.kernel.org/r/20250114-of_core_fix-v5-2-b8bafd00a86f@quicinc.com Signed-off-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
a6848636d8
commit
8de4e5a922
@@ -214,6 +214,11 @@ void __init fdt_scan_reserved_mem_reg_nodes(void)
|
||||
uname);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (len > t_len)
|
||||
pr_warn("%s() ignores %d regions in node '%s'\n",
|
||||
__func__, len / t_len - 1, uname);
|
||||
|
||||
base = dt_mem_next_cell(dt_root_addr_cells, &prop);
|
||||
size = dt_mem_next_cell(dt_root_size_cells, &prop);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user