summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2023-07-14 03:37:34 +0300
committerTom Rini <trini@konsulko.com>2023-07-20 21:48:20 +0300
commit99fddf5caa65a3bffd5fc2b9f87bf1e4837fb440 (patch)
tree68d825fe68ed5afb26548cd4e89cd75d9c68a9c1 /include
parent9ef4166ff99b1bb18d11be49f6ac9601d3b27506 (diff)
downloadu-boot-99fddf5caa65a3bffd5fc2b9f87bf1e4837fb440.tar.xz
spl: Correct spl_board_boot_device function prototype
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@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/spl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/spl.h b/include/spl.h
index 658d36481d..92bcaa90a4 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