From 06a629e4b1b7f517866adb984c169459a9b2ecdf Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Tue, 24 Jan 2017 12:30:04 +0100 Subject: arch/x86: do not define type of SPIN_LOCK_UNLOCKED This fixes building coreboot with -std=gnu11 on gcc 4.9.x Also needs fix ups for asus/kcma-d8 and asus/kgpe-d16 due to the missing type. Change-Id: I920d492a1422433d7d4b4659b27f5a22914bc438 Signed-off-by: Patrick Georgi Reviewed-on: https://review.coreboot.org/18220 Reviewed-by: Aaron Durbin Tested-by: build bot (Jenkins) --- src/arch/x86/include/arch/smp/spinlock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/arch') diff --git a/src/arch/x86/include/arch/smp/spinlock.h b/src/arch/x86/include/arch/smp/spinlock.h index 24f52f18b0..767f96e259 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; -- cgit v1.2.3