[coreboot-gerrit] Patch set updated for coreboot: northbridge/amd/amdfam10: Fix build failure if LATE_CBMEM_INIT enabled

Timothy Pearson (tpearson@raptorengineeringinc.com) gerrit at coreboot.org
Tue Oct 27 19:23:28 CET 2015


Timothy Pearson (tpearson at raptorengineeringinc.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/12197

-gerrit

commit 9c5753a48d713977c1d3c0857d86533aac13591f
Author: Timothy Pearson <tpearson at raptorengineeringinc.com>
Date:   Mon Oct 26 17:49:42 2015 -0500

    northbridge/amd/amdfam10: Fix build failure if LATE_CBMEM_INIT enabled
    
    When the little-used LATE_CBMEM_INIT option is enabled, builds will
    fail due to agressive unused function checking.  Hide the offending
    amdmct_cbmem_store_info() function from the compiler when the
    LATE_CBMEM_INIT option is enabled.
    
    Change-Id: I414233d54712f6e3e0b7f414764b9c56ee9cc971
    Signed-off-by: Timothy Pearson <tpearson at raptorengineeringinc.com>
---
 src/northbridge/amd/amdfam10/raminit_amdmct.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/northbridge/amd/amdfam10/raminit_amdmct.c b/src/northbridge/amd/amdfam10/raminit_amdmct.c
index fdba99b..4830f51 100644
--- a/src/northbridge/amd/amdfam10/raminit_amdmct.c
+++ b/src/northbridge/amd/amdfam10/raminit_amdmct.c
@@ -237,6 +237,7 @@ static void raminit_amdmct(struct sys_info *sysinfo)
 	printk(BIOS_DEBUG, "raminit_amdmct end:\n");
 }
 
+#if IS_ENABLED(CONFIG_EARLY_CBMEM_INIT)
 static void amdmct_cbmem_store_info(struct sys_info *sysinfo)
 {
 	if (!sysinfo)
@@ -275,3 +276,4 @@ static void amdmct_cbmem_store_info(struct sys_info *sysinfo)
 	}
 #endif
 }
+#endif



More information about the coreboot-gerrit mailing list