Re: [PATCH 1/4] image-fit: Use unsigned types for external data properties

Simon Glass <[email protected]> Wed, 5 Aug 2026 15:48:11 -0600
Newsgroups gmane.comp.boot-loaders.u-boot
Message-ID <CAFLszTgGaZXByhcy-SYEYZ7=aPv9iZhGJ0c+rfr-54GpzUNuHg__46734.754128714$1785966526$gmane$org@mail.gmail.com>
On 2026-07-30T15:03:40, Anton Ivanov <[email protected]> wrote:
> image-fit: Use unsigned types for external data properties
>
> The data-offset, data-position and data-size FIT properties are
> stored as 32-bit unsigned values (fdt32_t), but the accessors
> fit_image_get_data_offset(), fit_image_get_data_position() and
> fit_image_get_data_size() return them through a signed int.
>
> Switch the accessors and their callers to u32. This removes the
> special-processing of "negative" values in fit_image_get_data().
>
> Signed-off-by: Anton Ivanov <[email protected]>
>
> boot/image-fit.c               | 29 ++++++++++-------------------
>  common/spl/spl_fit.c           |  4 ++--
>  common/splash_source.c         |  2 +-
>  drivers/fpga/socfpga_arria10.c |  3 ++-
>  include/image.h                |  6 +++---
>  test/py/tests/test_vboot.py    |  6 +-----
>  6 files changed, 19 insertions(+), 31 deletions(-)

Reviewed-by: Simon Glass <[email protected]>