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 <pgeorgi@chromium.org> Reviewed-on: https://review.coreboot.org/18220 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins)
This commit is contained in:
committed by
Patrick Georgi
parent
29c19a027a
commit
06a629e4b1
@ -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;
|
||||
|
Reference in New Issue
Block a user