Jacob Garber has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/39014 )
Change subject: vc/amd/agesa/f14: Fix array length ......................................................................
vc/amd/agesa/f14: Fix array length
This array is declared to have length MAX_FF_TYPES (aka 6) in several other places, so update it here so the length matches. This fixes a compiler error when using LTO. Extending the length is harmless, since the only code that uses this array will stop once it reaches the NULL pointer.
Change-Id: Ie00e969fa8cda88a934bf416c8775f7ae0b2747e Signed-off-by: Jacob Garber jgarber1@ualberta.ca --- M src/vendorcode/amd/agesa/f14/Config/OptionMemoryInstall.h 1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/14/39014/1
diff --git a/src/vendorcode/amd/agesa/f14/Config/OptionMemoryInstall.h b/src/vendorcode/amd/agesa/f14/Config/OptionMemoryInstall.h index 57dc0c8..d75445b 100644 --- a/src/vendorcode/amd/agesa/f14/Config/OptionMemoryInstall.h +++ b/src/vendorcode/amd/agesa/f14/Config/OptionMemoryInstall.h @@ -569,7 +569,7 @@ #define PLAT_SP_ON_FF_SDIMM3 MemPConstructPsUDef, #define PLAT_SP_ON_FF_UDIMM3 MemPConstructPsUDef, #endif - MEM_PLAT_SPEC_CFG* memPlatSpecFFInstalledON[] = { + MEM_PLAT_SPEC_CFG* memPlatSpecFFInstalledON[MAX_FF_TYPES] = { PLAT_SP_ON_FF_SDIMM3 PLAT_SP_ON_FF_UDIMM3 NULL
Paul Menzel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/39014 )
Change subject: vc/amd/agesa/f14: Fix array length ......................................................................
Patch Set 1: Code-Review+1
Paul Menzel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/39014 )
Change subject: vc/amd/agesa/f14: Fix array length ......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/c/coreboot/+/39014/1//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/39014/1//COMMIT_MSG@10 PS1, Line 10: This fixes a : compiler error when using LTO. Please cite the error.
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/39014 )
Change subject: vc/amd/agesa/f14: Fix array length ......................................................................
Patch Set 1: Code-Review+2
Marshall Dawson has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/39014 )
Change subject: vc/amd/agesa/f14: Fix array length ......................................................................
Patch Set 2: Code-Review+2
I thought someone had already fixed this.
Hello build bot (Jenkins), Michał Żygowski, Marshall Dawson, Paul Menzel, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/39014
to look at the new patch set (#3).
Change subject: vc/amd/agesa/f14: Fix array length ......................................................................
vc/amd/agesa/f14: Fix array length
This array is declared to have length MAX_FF_TYPES (aka 6) in several other places, so update it here so the length matches. This fixes a -Wlto-type-mismatch compiler error when using LTO. Extending the length is harmless, since the only code that uses this array will stop once it reaches the NULL pointer.
Change-Id: Ie00e969fa8cda88a934bf416c8775f7ae0b2747e Signed-off-by: Jacob Garber jgarber1@ualberta.ca --- M src/vendorcode/amd/agesa/f14/Config/OptionMemoryInstall.h 1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/14/39014/3
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/39014 )
Change subject: vc/amd/agesa/f14: Fix array length ......................................................................
Patch Set 3: Code-Review+2
Jacob Garber has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/39014 )
Change subject: vc/amd/agesa/f14: Fix array length ......................................................................
Patch Set 3:
(1 comment)
Patch Set 2: Code-Review+2
I thought someone had already fixed this.
You're probably thinking of this patch, it's been around for several months.
https://review.coreboot.org/c/coreboot/+/39014/1//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/39014/1//COMMIT_MSG@10 PS1, Line 10: This fixes a : compiler error when using LTO.
Please cite the error.
Done
Angel Pons has submitted this change. ( https://review.coreboot.org/c/coreboot/+/39014 )
Change subject: vc/amd/agesa/f14: Fix array length ......................................................................
vc/amd/agesa/f14: Fix array length
This array is declared to have length MAX_FF_TYPES (aka 6) in several other places, so update it here so the length matches. This fixes a -Wlto-type-mismatch compiler error when using LTO. Extending the length is harmless, since the only code that uses this array will stop once it reaches the NULL pointer.
Change-Id: Ie00e969fa8cda88a934bf416c8775f7ae0b2747e Signed-off-by: Jacob Garber jgarber1@ualberta.ca Reviewed-on: https://review.coreboot.org/c/coreboot/+/39014 Reviewed-by: Angel Pons th3fanbus@gmail.com Tested-by: build bot (Jenkins) no-reply@coreboot.org --- M src/vendorcode/amd/agesa/f14/Config/OptionMemoryInstall.h 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: build bot (Jenkins): Verified Angel Pons: Looks good to me, approved
diff --git a/src/vendorcode/amd/agesa/f14/Config/OptionMemoryInstall.h b/src/vendorcode/amd/agesa/f14/Config/OptionMemoryInstall.h index 231b263..600ae9b 100644 --- a/src/vendorcode/amd/agesa/f14/Config/OptionMemoryInstall.h +++ b/src/vendorcode/amd/agesa/f14/Config/OptionMemoryInstall.h @@ -569,7 +569,7 @@ #define PLAT_SP_ON_FF_SDIMM3 MemPConstructPsUDef, #define PLAT_SP_ON_FF_UDIMM3 MemPConstructPsUDef, #endif - MEM_PLAT_SPEC_CFG* memPlatSpecFFInstalledON[] = { + MEM_PLAT_SPEC_CFG* memPlatSpecFFInstalledON[MAX_FF_TYPES] = { PLAT_SP_ON_FF_SDIMM3 PLAT_SP_ON_FF_UDIMM3 NULL