From 5f2141519ba6e7855d1b2e520fa23b9176394462 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Thu, 17 Jun 2021 16:55:58 +0200 Subject: [PATCH] arch/x86/include/arch/smp/mpspec: improve mp_bustype enum definition Since the raw values of the enum elements are used, explicitly assign the value 0 to the first element to make it clearer that the absolute values matter here. Signed-off-by: Felix Held Change-Id: I69f58cca7130ce5f0ebe4743754e4e31f55db289 Reviewed-on: https://review.coreboot.org/c/coreboot/+/55615 Tested-by: build bot (Jenkins) Reviewed-by: Raul Rangel --- src/arch/x86/include/arch/smp/mpspec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arch/x86/include/arch/smp/mpspec.h b/src/arch/x86/include/arch/smp/mpspec.h index a51399347a..0528f05300 100644 --- a/src/arch/x86/include/arch/smp/mpspec.h +++ b/src/arch/x86/include/arch/smp/mpspec.h @@ -155,7 +155,7 @@ struct mpc_config_lintsrc { #define MAX_IRQ_SOURCES 128 #define MAX_MP_BUSSES 32 enum mp_bustype { - MP_BUS_ISA, + MP_BUS_ISA = 0, MP_BUS_EISA, MP_BUS_PCI, MP_BUS_MCA