Trying to test, if QEMU x86 still works (though it doesn’t use microcode updates, right), it fails to build.

```
CC ramstage/arch/x86/cpu.o
In file included from src/arch/x86/cpu.c:15:
src/include/smp/spinlock.h:8: error: "DECLARE_SPIN_LOCK" redefined [-Werror]
#define DECLARE_SPIN_LOCK(x)

In file included from src/include/cpu/x86/mp.h:6,
from src/arch/x86/cpu.c:9:
src/arch/x86/include/arch/smp/spinlock.h:20: note: this is the location of the previous definition
#define DECLARE_SPIN_LOCK(x) \

In file included from src/arch/x86/cpu.c:15:
src/include/smp/spinlock.h:9: error: "spin_is_locked" redefined [-Werror]
#define spin_is_locked(lock) 0

In file included from src/include/cpu/x86/mp.h:6,
from src/arch/x86/cpu.c:9:
src/arch/x86/include/arch/smp/spinlock.h:30: note: this is the location of the previous definition
#define spin_is_locked(x) (*(volatile char *)(&(x)->lock) <= 0)

In file included from src/arch/x86/cpu.c:15:
src/include/smp/spinlock.h:10: error: "spin_unlock_wait" redefined [-Werror]
#define spin_unlock_wait(lock) do {} while (0)

In file included from src/include/cpu/x86/mp.h:6,
from src/arch/x86/cpu.c:9:
src/arch/x86/include/arch/smp/spinlock.h:31: note: this is the location of the previous definition
#define spin_unlock_wait(x) do { barrier(); } while (spin_is_locked(x))
```

View Change

To view, visit change 44904. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I89a01f6ff94e7d35f1feded3ddb0c43caf7c6c5d
Gerrit-Change-Number: 44904
Gerrit-PatchSet: 5
Gerrit-Owner: Patrick Rudolph <patrick.rudolph@9elements.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-CC: Angel Pons <th3fanbus@gmail.com>
Gerrit-CC: Paul Menzel <paulepanter@users.sourceforge.net>
Gerrit-Comment-Date: Tue, 27 Oct 2020 08:53:06 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment