From d3bb09d9f498bd35cb7869dc45282b54f5a0ca78 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Sun, 25 Jun 2017 11:50:58 -0600 Subject: [PATCH] src: add IS_ENABLED() around Kconfig symbol references MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These are places that were missed on the first pass. Change-Id: Ia6511f0325433ab020946078923bf7ad6f0362a3 Signed-off-by: Martin Roth Reviewed-on: https://review.coreboot.org/20358 Reviewed-by: Philippe Mathieu-Daudé Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer Reviewed-by: Kyösti Mälkki --- src/arch/x86/pci_ops_conf1.c | 2 +- src/arch/x86/smbios.c | 2 +- src/console/vtxprintf.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/arch/x86/pci_ops_conf1.c b/src/arch/x86/pci_ops_conf1.c index 820744c74b..a92fd3108f 100644 --- a/src/arch/x86/pci_ops_conf1.c +++ b/src/arch/x86/pci_ops_conf1.c @@ -20,7 +20,7 @@ * Functions for accessing PCI configuration space with type 1 accesses */ -#if !CONFIG_PCI_IO_CFG_EXT +#if !IS_ENABLED(CONFIG_PCI_IO_CFG_EXT) #define CONFIG_CMD(bus, devfn, where) (0x80000000 | (bus << 16) | \ (devfn << 8) | (where & ~3)) #else diff --git a/src/arch/x86/smbios.c b/src/arch/x86/smbios.c index 285027006e..72fb0dfb77 100644 --- a/src/arch/x86/smbios.c +++ b/src/arch/x86/smbios.c @@ -278,7 +278,7 @@ static int smbios_write_type0(unsigned long *current, int handle) t->length = len - 2; t->vendor = smbios_add_string(t->eos, "coreboot"); -#if !CONFIG_CHROMEOS +#if !IS_ENABLED(CONFIG_CHROMEOS) t->bios_release_date = smbios_add_string(t->eos, coreboot_dmi_date); t->bios_version = smbios_add_string(t->eos, diff --git a/src/console/vtxprintf.c b/src/console/vtxprintf.c index 5f37253e7d..acf2f80f7f 100644 --- a/src/console/vtxprintf.c +++ b/src/console/vtxprintf.c @@ -21,7 +21,7 @@ #define call_tx(x) tx_byte(x, data) -#if !CONFIG_ARCH_MIPS +#if !IS_ENABLED(CONFIG_ARCH_MIPS) #define SUPPORT_64BIT_INTS #endif