From 8b01efe8e6e1ab6110af84a33423ab33d9fd6283 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 17 Dec 2020 15:18:18 +0200 Subject: [PATCH] arch: x86: Fix early_serial build error when using fixed MMIO address Fix the following complilation error that happens when specifying a fixed MMIO address for the UART through X86_SOC_EARLY_SERIAL_MMIO8_ADDR: arch/x86/core/early_serial.c:30:26: error: #if with no expression 30 | #if DEVICE_MMIO_IS_IN_RAM Signed-off-by: Johan Hedberg --- arch/x86/core/early_serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/core/early_serial.c b/arch/x86/core/early_serial.c index d828e7cf115..467267f1879 100644 --- a/arch/x86/core/early_serial.c +++ b/arch/x86/core/early_serial.c @@ -27,7 +27,7 @@ static mm_reg_t mmio; /* Still other devices use a MMIO region containing packed byte * registers */ -#if DEVICE_MMIO_IS_IN_RAM +#ifdef DEVICE_MMIO_IS_IN_RAM static mm_reg_t mmio; #define BASE mmio #else