This series changes the returned error code for lmb_alloc_mem() and
lmb_free() may return to help restore suppression of the verbose ERROR
messages when FDT memreserve and reserved-memory is being processed.

Changes in v2:
- Change lmb_alloc_mem() to return -EFAULT when region is not part of
  the LMB memory map
- Change lmb_free() to return -EFAULT when the region is not allocated
- Change to use a debug message when -EFAULT is returned

Two similar patches to suppress this ERROR message can be found at [1]
and [2].

[1] https://patch.msgid.link/[email protected]/
[2] 
https://patch.msgid.link/20260810-suppress-fdt-res-error-v1-1-e9641eb0a...@oss.qualcomm.com/

Jonas Karlman (3):
  lmb: Return -EFAULT when requested region is not part of memory map
  lmb: Return -EFAULT when freeing unallocated memory regions
  boot: image-fdt: Restore suppression of irrelevant ERROR message

 boot/image-fdt.c |  8 ++++----
 include/lmb.h    |  4 +++-
 lib/lmb.c        |  6 ++++--
 test/lib/lmb.c   | 12 ++++++++++--
 4 files changed, 21 insertions(+), 9 deletions(-)

-- 
2.55.0

Reply via email to