summaryrefslogtreecommitdiff
path: root/src/include/program_loading.h
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2022-03-07 18:54:47 -0800
committerJulius Werner <jwerner@chromium.org>2022-03-09 17:20:48 +0000
commit797a110856a5d2021bbad0d28f4aee357d48cee1 (patch)
tree67fc076f4bc1750a62af8fcb12defa893d0641ca /src/include/program_loading.h
parentd5f45d0a9e8f969181630ca4ba73f314f43728f0 (diff)
prog_loader: Change legacy_romstage_select_and_load() to return cb_err
This is passing through a cb_err from cbfs_prog_stage_load(), so it should be declared to return that as well. Signed-off-by: Julius Werner <jwerner@chromium.org> Change-Id: I5510d05953fe8c0e2cb511f01f862b66ced154ae Reviewed-on: https://review.coreboot.org/c/coreboot/+/62656 Reviewed-by: Yu-Ping Wu <yupingso@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/include/program_loading.h')
-rw-r--r--src/include/program_loading.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/include/program_loading.h b/src/include/program_loading.h
index ba42465046..7ff55fc4b5 100644
--- a/src/include/program_loading.h
+++ b/src/include/program_loading.h
@@ -5,8 +5,7 @@
#include <bootmem.h>
#include <commonlib/bsd/cbfs_serialized.h>
#include <commonlib/region.h>
-#include <stdint.h>
-#include <stddef.h>
+#include <types.h>
enum {
/* Last segment of program. Can be used to take different actions for
@@ -139,7 +138,7 @@ void platform_prog_run(struct prog *prog);
void run_romstage(void);
/* Runtime selector for CBFS_PREFIX of romstage. */
-int legacy_romstage_select_and_load(struct prog *romstage);
+enum cb_err legacy_romstage_select_and_load(struct prog *romstage);
/************************
* RAMSTAGE LOADING *