[PATCH 0/7] Correct confusing lmb error message

Simon Glass sjg at chromium.org
Wed Aug 23 15:41:56 CEST 2023


I ran into a very confusing error message about overlapping memory. I
found that the message is not correct, so this series refactors the lmb
code a little to permit the real message to be displayed, which is that
the internal lmb table has overflowed.

It also tidies up the code a little.


Simon Glass (7):
  lmb: Drop surplus brackets and fix code style
  lmb: Tidy up structure access
  lmb: Avoid long for loop counters and function returns
  lmb: Change functions returning long to return int
  lmb: Tidy up lmb_overlaps_region()
  lmb: Document and tidy lmb_add_region_flags()
  fs: Fix a confusing error about overlapping regions

 fs/fs.c        |   7 +-
 include/lmb.h  |  29 ++++++--
 lib/lmb.c      | 183 ++++++++++++++++++++++++++++++-------------------
 test/lib/lmb.c |  42 ++++++------
 4 files changed, 163 insertions(+), 98 deletions(-)

-- 
2.42.0.rc1.204.g551eb34607-goog



More information about the U-Boot mailing list