[PATCH 1/1] global_data: fix type for gd_malloc_ptr()
Simon Glass
sjg at chromium.org
Thu Jun 18 16:23:05 CEST 2026
On 2026-06-05T13:44:46, Alexander Stein <alexander.stein at ew.tq-group.com> wrote:
> global_data: fix type for gd_malloc_ptr()
>
> With commit 92aa3ec321b5 ("global_data: Reduce size of early-malloc vars")
> the type changes from (unsigned) long to int. But the type for default
> if SYS_MALLOC_F_LEN is unset was not changed. Remove the suffix.
> Fixes the warning:
> common/spl/spl.c:800:23: warning: format '%x' expects argument of type
> 'unsigned int', but argument 2 has type 'long int' [-Wformat=]
>
> Fixes: 92aa3ec321b5 ("global_data: Reduce size of early-malloc vars")
> Signed-off-by: Alexander Stein <alexander.stein at ew.tq-group.com>
>
> include/asm-generic/global_data.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list