From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [PATCH 3/5] spl: Correct spl_board_boot_device function prototype
Date: Thu, 13 Jul 2023 20:37:34 -0400 [thread overview]
Message-ID: <20230714003736.3512509-3-trini@konsulko.com> (raw)
In-Reply-To: <20230714003736.3512509-1-trini@konsulko.com>
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>
---
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
next prev parent reply other threads:[~2023-07-14 0:38 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-14 0:37 [PATCH 1/5] mips: octeon: Correct types in cvmx-pko3-queue Tom Rini
2023-07-14 0:37 ` [PATCH 2/5] arm: mx5: Correct mxc_set_clock function prototype Tom Rini
2023-07-21 1:30 ` Tom Rini
2023-07-14 0:37 ` Tom Rini [this message]
2023-07-15 23:40 ` [PATCH 3/5] spl: Correct spl_board_boot_device " Simon Glass
2023-07-21 1:30 ` Tom Rini
2023-07-14 0:37 ` [PATCH 4/5] CI: Update to gcc-13.1.0 Tom Rini
2023-07-14 13:52 ` Alexey Brodkin
2023-07-14 14:13 ` Tom Rini
2023-07-15 23:40 ` Simon Glass
2023-07-21 1:30 ` Tom Rini
2023-07-14 0:37 ` [PATCH 5/5] CI: Update to the latest "Jammy" tag Tom Rini
2023-07-15 23:40 ` Simon Glass
2023-07-21 1:30 ` Tom Rini
2023-07-21 1:30 ` [PATCH 1/5] mips: octeon: Correct types in cvmx-pko3-queue Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230714003736.3512509-3-trini@konsulko.com \
--to=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox