[PATCH 3/5] spl: Correct spl_board_boot_device function prototype

Tom Rini trini at konsulko.com
Fri Jul 14 02:37:34 CEST 2023


With gcc-13.1 we get a warning about enum vs int here, so correct the
declaration to match the implementation.

Signed-off-by: Tom Rini <trini at konsulko.com>
---
 include/spl.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/spl.h b/include/spl.h
index 658d36481dee..92bcaa90a4af 100644
--- a/include/spl.h
+++ b/include/spl.h
@@ -31,6 +31,7 @@ struct legacy_img_hdr;
 struct blk_desc;
 struct legacy_img_hdr;
 struct spl_boot_device;
+enum boot_device;
 
 /*
  * u_boot_first_phase() - check if this is the first U-Boot phase
@@ -525,7 +526,7 @@ void spl_board_prepare_for_linux(void);
 void spl_board_prepare_for_optee(void *fdt);
 void spl_board_prepare_for_boot(void);
 int spl_board_ubi_load_image(u32 boot_device);
-int spl_board_boot_device(u32 boot_device);
+int spl_board_boot_device(enum boot_device boot_dev_spl);
 
 /**
  * spl_board_loader_name() - Return a name for the loader
-- 
2.34.1



More information about the U-Boot mailing list