[coreboot-gerrit] New patch to review for coreboot: arch/x86: do not define type of SPIN_LOCK_UNLOCKED

Patrick Georgi (pgeorgi@google.com) gerrit at coreboot.org
Tue Jan 24 12:30:51 CET 2017


Patrick Georgi (pgeorgi at google.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/18220

-gerrit

commit 0585a6c91a927b16e1543fce7b7164083d2996a9
Author: Patrick Georgi <pgeorgi at chromium.org>
Date:   Tue Jan 24 12:30:04 2017 +0100

    arch/x86: do not define type of SPIN_LOCK_UNLOCKED
    
    This fixes building coreboot with -std=gnu11 on gcc 4.9.x
    
    Change-Id: I920d492a1422433d7d4b4659b27f5a22914bc438
    Signed-off-by: Patrick Georgi <pgeorgi at chromium.org>
---
 src/arch/x86/include/arch/smp/spinlock.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/arch/x86/include/arch/smp/spinlock.h b/src/arch/x86/include/arch/smp/spinlock.h
index 24f52f1..767f96e 100644
--- a/src/arch/x86/include/arch/smp/spinlock.h
+++ b/src/arch/x86/include/arch/smp/spinlock.h
@@ -36,7 +36,7 @@ spinlock_t* romstage_microcode_cbfs_lock(void);
 void initialize_romstage_microcode_cbfs_lock(void);
 #endif
 
-#define SPIN_LOCK_UNLOCKED (spinlock_t) { 1 }
+#define SPIN_LOCK_UNLOCKED { 1 }
 
 #ifndef __PRE_RAM__
 #define DECLARE_SPIN_LOCK(x) static spinlock_t x = SPIN_LOCK_UNLOCKED;



More information about the coreboot-gerrit mailing list