Arthur Heymans has submitted this change. ( https://review.coreboot.org/c/coreboot/+/84055?usp=email )
Change subject: nb/intel/sandybridge: Fix uninitialised variable ......................................................................
nb/intel/sandybridge: Fix uninitialised variable
GCC with LTO caught this.
Change-Id: I9f78b9973729bdedb40bd63b8989e94c9c498814 Signed-off-by: Arthur Heymans arthur@aheymans.xyz Reviewed-on: https://review.coreboot.org/c/coreboot/+/84055 Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: Angel Pons th3fanbus@gmail.com --- M src/northbridge/intel/sandybridge/raminit.c 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Angel Pons: Looks good to me, approved build bot (Jenkins): Verified
diff --git a/src/northbridge/intel/sandybridge/raminit.c b/src/northbridge/intel/sandybridge/raminit.c index 8a8bd83..d5e1a7c 100644 --- a/src/northbridge/intel/sandybridge/raminit.c +++ b/src/northbridge/intel/sandybridge/raminit.c @@ -340,7 +340,7 @@ int me_uma_size, cbmem_was_inited, fast_boot, err; ramctr_timing ctrl; spd_ddr3_raw_data spds[4]; - size_t mrc_size; + size_t mrc_size = 0; ramctr_timing *ctrl_cached = NULL;
timestamp_add_now(TS_INITRAM_START);