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

Simon Glass <[email protected]>
Newsgroups gmane.comp.boot-loaders.u-boot
Message-ID <CAFLszThReYZBXAVFRXxOWfoyRz95Xi2ndJ5VdPoODE-BGDhbjA__21563.4248148248$1786196995$gmane$org@mail.gmail.com>
On 2026-08-06T21:29:18, 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    | 10 +++++-----
>  6 files changed, 23 insertions(+), 31 deletions(-)

Reviewed-by: Simon Glass <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.