From fd63e11f714eb1e908df2005d9becb492a5247e9 Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Wed, 8 Sep 2021 11:52:09 +0200 Subject: [PATCH] drivers/intel/fsp2_0: Retype loop variable from int to uint32_t Retype loop variable `i` to `uint32_t` for consistency with the types of the `number_of_phases` and `phase_index` struct fields and the parameter of the `platform_fsp_multi_phase_init_cb()` function. Change-Id: I82916f33c2dc5dab6a31111c9acba2a18a5cfb0b Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/coreboot/+/57491 Reviewed-by: Subrata Banik Reviewed-by: Felix Held Reviewed-by: Paul Menzel Reviewed-by: Furquan Shaikh Tested-by: build bot (Jenkins) --- src/drivers/intel/fsp2_0/silicon_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drivers/intel/fsp2_0/silicon_init.c b/src/drivers/intel/fsp2_0/silicon_init.c index a00699df0b..bf5230e90d 100644 --- a/src/drivers/intel/fsp2_0/silicon_init.c +++ b/src/drivers/intel/fsp2_0/silicon_init.c @@ -166,8 +166,8 @@ static void do_silicon_init(struct fsp_header *hdr) fsps_return_value_handler(FSP_MULTI_PHASE_SI_INIT_GET_NUMBER_OF_PHASES_API, status); /* Execute Multi Phase Execution */ - for (int i = 1; i <= multi_phase_get_number.number_of_phases; i++) { - printk(BIOS_SPEW, "Executing Phase %d of FspMultiPhaseSiInit\n", i); + for (uint32_t i = 1; i <= multi_phase_get_number.number_of_phases; i++) { + printk(BIOS_SPEW, "Executing Phase %u of FspMultiPhaseSiInit\n", i); /* * Give SoC/mainboard a chance to perform any operation before * Multi Phase Execution