Skip to contentSkip to conversation

arm: imx: Fix incorrect return value

PATCH In review Ye Li 2 participants 2 messages Mar 28, 2024 – Mar 30, 2024

Subsystems (3)
lore
Share & tools
lore

Ye Li

author
#0 lore raw

PATCH 1/1 arm: imx: Fix incorrect return value

The spl_spi_get_uboot_offs weak function is defined unsigned int.

---
 arch/arm/mach-imx/image-container.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-imx/image-container.c +1 -1
index c9455fe..35da0ae 100644
@@ -262,7 +262,7 @@ static int get_imageset_end(void *dev, int dev_type)
 }
 
 #ifdef CONFIG_SPL_SPI_LOAD
-unsigned long spl_spi_get_uboot_offs(struct spi_flash *flash)
+unsigned int spl_spi_get_uboot_offs(struct spi_flash *flash)
 {
 	int end;
 
Signature · 1 line
2.7.4
reviewer
#1 lore raw
Quoted 4 lines · Ye Li

The spl_spi_get_uboot_offs weak function is defined unsigned int.

The original Subject is too generic, I changed it to:

image-container: Fix incorrect return value

Applied to u-boot-imx/next, thanks.