From 9c4d85d83af20b7e83ebcb577cd3566619abd545 Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Tue, 2 Apr 2024 08:00:14 +0000 Subject: lib: Refactor bmp_load_logo() implementation This refactoring ensures bmp_load_logo() takes logo_size as an argument, returning a valid logo_ptr only if logo_size is non-zero. This prevents potential errors from mismatched size assumption. BUG=b:242829490 TEST=google/rex0 builds successfully. Change-Id: I14bc54670a67980ec93bc366b274832d1f959e50 Signed-off-by: Subrata Banik Reviewed-on: https://review.coreboot.org/c/coreboot/+/81618 Reviewed-by: Matt DeVillier Tested-by: build bot (Jenkins) Reviewed-by: Dinesh Gehlot Reviewed-by: Julius Werner --- src/include/bootsplash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/bootsplash.h b/src/include/bootsplash.h index 86048a4859..372e8c2062 100644 --- a/src/include/bootsplash.h +++ b/src/include/bootsplash.h @@ -20,7 +20,7 @@ void set_bootsplash(unsigned char *framebuffer, unsigned int x_resolution, * For example: Introduce configurable BMP logo for customization on platforms like ChromeOS */ const char *bmp_logo_filename(void); -void bmp_load_logo(uint32_t *logo_ptr, uint32_t *logo_size); +void *bmp_load_logo(size_t *logo_size); void bmp_release_logo(void); #endif -- cgit v1.2.3